/*private void OnPat_Click() { FormPatientSelect formPS = new FormPatientSelect(); formPS.ShowDialog(); if(formPS.DialogResult!=DialogResult.OK){ return; } RefreshModulePatient(formPS.SelectedPatNum); DisplayOtherDlg(false); }*/ private void OnUnschedList_Click() { Cursor=Cursors.WaitCursor; FormUnsched FormUnsched2=new FormUnsched(); FormUnsched2.ShowDialog(); if(FormUnsched2.PinClicked) { SendToPinBoard(FormUnsched2.AptSelected); } if(FormUnsched2.SelectedPatNum!=0) { RefreshModuleDataPatient(FormUnsched2.SelectedPatNum); OnPatientSelected(PatCur); //RefreshModulePatient(FormUnsched2.SelectedPatNum); } Cursor=Cursors.Default; }
/*private void OnPat_Click() { FormPatientSelect formPS = new FormPatientSelect(); formPS.ShowDialog(); if(formPS.DialogResult!=DialogResult.OK){ return; } RefreshModulePatient(formPS.SelectedPatNum); DisplayOtherDlg(false); }*/ private void OnUnschedList_Click() { //Reselect existing window if available, if not create a new instance if(FormUnsched2==null || FormUnsched2.IsDisposed) { FormUnsched2=new FormUnsched(); FormUnsched2.PatientGoTo=PatientSelected; } FormUnsched2.Show(); if(FormUnsched2.WindowState==FormWindowState.Minimized) {//only applicable if re-using an existing instance FormUnsched2.WindowState=FormWindowState.Normal; } FormUnsched2.BringToFront(); }