private void addMRIExamToolStripMenuItem_Click(object sender, EventArgs e) { RiskApps3.Model.PatientRecord.Patient proband = SessionManager.Instance.GetActivePatient(); if (proband != null) { BreastImagingStudy bis = new BreastImagingStudy(); bis.unitnum = proband.unitnum; bis.type = "MRI"; bis.date = DateTime.Today; bis.imagingType = "MRI"; bis.side = "Bilateral"; AddImagingForm aif = new AddImagingForm(); aif.Text = "Add new MRI Study"; aif.study = bis; aif.proband = proband; if (aif.ShowDialog() == System.Windows.Forms.DialogResult.OK) { int a = SessionManager.Instance.GetActivePatient().apptid; string u = SessionManager.Instance.GetActivePatient().unitnum; FinalizeRecordForm frm = new FinalizeRecordForm(a, u); frm.ShowDialog(); RefreshQueue(); } } }
private void EditSurveyForm_FormClosing(object sender, FormClosingEventArgs e) { if (MessageBox.Show("Do you want to calculate risk and generate doucments?", "Run Risk and Generate Documents", MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes) { RunRiskModelsDialog rrmd = new RunRiskModelsDialog(true); rrmd.ShowDialog(); } int a = SessionManager.Instance.GetActivePatient().apptid; string u = SessionManager.Instance.GetActivePatient().unitnum; FinalizeRecordForm frm = new FinalizeRecordForm(a, u); frm.ShowDialog(); theDockPanel.Visible = false; string configFile = SessionManager.SelectDockConfig("EditSurveyFormDockPanel.config"); if (SessionManager.Instance.SaveLayoutOnClose) theDockPanel.SaveAsXml(configFile); CloseChildView(efhv); CloseChildView(pcv); CloseChildView(acrf); CloseChildView(mmHx); patientRecordHeader1.ReleaseListeners(); }
private void RiskClinicMainForm_FormClosing(object sender, FormClosingEventArgs e) { int a = SessionManager.Instance.GetActivePatient().apptid; string u = SessionManager.Instance.GetActivePatient().unitnum; FinalizeRecordForm frm = new FinalizeRecordForm(a, u); frm.ShowDialog(); theDockPanel.Visible = false; string configFile = SessionManager.SelectDockConfig("RiskClinicMainFormDockPanel.config"); if (SessionManager.Instance.SaveLayoutOnClose) theDockPanel.SaveAsXml(configFile); CloseChildView(prv); CloseChildView(pcv); CloseChildView(rcfhv); CloseChildView(acrf); CloseChildView(srmv); CloseChildView(brecs); CloseChildView(tv); CloseChildView(ov); CloseChildView(crv); patientRecordHeader1.ReleaseListeners(); }
/**************************************************************************************************/ private void PedigreeForm_FormClosing(object sender, FormClosingEventArgs e) { ValidateChildren(); if (pedigreeControl1.controller != null) { if (pedigreeControl1.controller.GetMode() == "SELF_ORGANIZING") { if (pedigreeControl1.model.converged == false) pedigreeControl1.SavePositions(true); } } if (guiPreferenceList != null) guiPreferenceList.ReleaseListeners(this); pedigreeControl1.Close(); pedigreeControl1.ReleaseListeners(); if (proband != null) { proband.FHx.ReleaseListeners(this); proband.ReleaseListeners(this); } SessionManager.Instance.RemoveHraView(this); bool riskClinicChild = RiskClinicMainFormInParentChain(this); if (riskClinicChild == false) { int a = SessionManager.Instance.GetActivePatient().apptid; string u = SessionManager.Instance.GetActivePatient().unitnum; FinalizeRecordForm frm = new FinalizeRecordForm(a, u); frm.ShowDialog(); } }