private void contrApptPanel_SelectedApptChanged(object sender,UI.ApptSelectedChangedEventArgs e) {
pinBoard.SelectedIndex=-1;
if(e.AptNumNew==-1){
RefreshModuleScreenButtonsRight();//just disables the buttons on the right
//we will leave current patient selected.
return;
};
if(_patCur==null || _patCur.PatNum!=e.PatNumNew){//patient changed
RefreshModuleDataPatient(e.PatNumNew);
FormOpenDental.S_Contr_PatientSelected(_patCur,true,false);
Plugins.HookAddCode(this, "ContrAppt.contrApptPanel_SelectedApptChanged_end"); <--------------------------
return;
}
//patient not changed
if(e.AptNumNew!=e.AptNumOld){
RefreshModuleScreenButtonsRight();//otherwise included above in RefreshModuleDataPatient
}
}
Thanks.
Cheers,
Bill Starck, DDS Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA