private void ReferenceBook_FormClosed(object sender, FormClosedEventArgs e) { if (IsOpenedFromMedicalCardForm) { MedicalCardForm MF = this.Owner as MedicalCardForm; MF.RefreshDrugsAndDiagnosis(Drugs, Diagnoses); } }
private void OpenPatientsCardBtn_Click(object sender, EventArgs e) { MedicalCardForm MC = new MedicalCardForm(); IMedicalCardViewRef = MC; OpenPatientsCard_Click?.Invoke(this, EventArgs.Empty); MC.Show(); }