///<summary>Allows lab to be reassociated with a new patient.</summary> private void butPatSelect_Click(object sender, EventArgs e) { FormMedLabPatSelect FormPS = new FormMedLabPatSelect(); FormPS.PatCur = PatCur; FormPS.ListMedLabs = ListMedLabs; FormPS.ShowDialog(); if (FormPS.DialogResult != DialogResult.OK) { return; } PatCur = FormPS.PatCur; RefreshPatientData(); }
///<summary>Allows lab to be reassociated with a new patient.</summary> private void butPatSelect_Click(object sender,EventArgs e) { FormMedLabPatSelect FormPS=new FormMedLabPatSelect(); FormPS.PatCur=PatCur; FormPS.ListMedLabs=ListMedLabs; FormPS.ShowDialog(); if(FormPS.DialogResult!=DialogResult.OK) { return; } if(PatCur==null || PatCur.PatNum!=FormPS.PatCur.PatNum) { PatCur=FormPS.PatCur; _isNewPat=true;//used to indicate that all MedLab objects need to be attached to the selected patient } RefreshPatientData(); }