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(); }