private void CommunicationTimeline_Load(object sender, EventArgs e) { SessionManager.Instance.NewActivePatient += NewActivePatient; proband = SessionManager.Instance.GetActivePatient(); if (proband != null) proband.AddHandlersWithLoad(null, activePatientLoaded, null); }
/**************************************************************************************************/ private void PendingTasksSummaryView_Load(object sender, EventArgs e) { SessionManager.Instance.NewActivePatient += NewActivePatient; proband = SessionManager.Instance.GetActivePatient(); if (proband != null) proband.AddHandlersWithLoad(null, activePatientLoaded, null); }
/**************************************************************************************************/ private void NewActivePatient(object sender, NewActivePatientEventArgs e) { flowLayoutPanel1.Enabled = false; if (proband != null) proband.ReleaseListeners(this); proband = e.newActivePatient; proband.AddHandlersWithLoad(null, activePatientLoaded, null); }
/**************************************************************************************************/ private void InitNewPatient() { // get active patinet object from session manager proband = SessionManager.Instance.GetActivePatient(); if (proband != null) { proband.AddHandlersWithLoad(activePatientChanged,activePatientLoaded,null); } }
/**************************************************************************************************/ private void NewActivePatient(object sender, NewActivePatientEventArgs e) { //ClearControls(); if (proband != null) proband.ReleaseListeners(this); if (e.newActivePatient != null) { proband = e.newActivePatient; proband.AddHandlersWithLoad(null, activePatientLoaded, null); } }
/**************************************************************************************************/ private void InitSelectedRelative() { proband = SessionManager.Instance.GetActivePatient(); if (proband != null) { proband.AddHandlersWithLoad(activePatientChanged, activePatientLoaded, null); pedGen = new PedigreeGenerator(pictureBox1.Width, pictureBox1.Height); pedGen.showBrcaScores = showBrcaScores; pedGen.showMmrScores = showMmrScores; Bitmap b = pedGen.GeneratePedigreeImage(); pictureBox1.Image = b; } }
/**************************************************************************************************/ private void InitNewPatient() { // get active patient object from session manager proband = SessionManager.Instance.GetActivePatient(); ClearControls(); if (proband != null) { loadingCircle1.Visible = true; loadingCircle1.Enabled = true; label1.Visible = false; proband.AddHandlersWithLoad(activePatientChanged, activePatientLoaded, null); } }
/**************************************************************************************************/ private void PatientCommunicationView_Load(object sender, EventArgs e) { //this.winFormHtmlEditor1.BtnImage.Click += winFormHtmlEditor1_BtnImage_Click; winFormHtmlEditor1.ToolbarItemOverrider.ImageButtonClicked += winFormHtmlEditor1_BtnImage_Click; winFormHtmlEditor1.EditorMode = SpiceLogic.HtmlEditorControl.Domain.BOs.EditorModes.ReadOnly_Preview; htmlEditorPanel.Visible = false; NoPreviewPanel.Visible = false; if (!ViewClosing) { SessionManager.Instance.NewActivePatient += NewActivePatient; proband = SessionManager.Instance.GetActivePatient(); if (proband != null) { proband.AddHandlersWithLoad(null, activePatientLoaded, null); loadingCircle1.Enabled = true; loadingCircle1.Visible = true; } else { Enabled = false; } } try { string dicPath = Environment.GetEnvironmentVariable("appdata") + @"\microsoft\uproof"; if (Directory.Exists(dicPath)) { foreach (string s in Directory.GetFiles(dicPath, "*.dic", SearchOption.TopDirectoryOnly)) { winFormHtmlEditor1.SpellCheckOptions.DictionaryFile.UserDictionaryFilePath = s; } } } catch (Exception ex) { Logger.Instance.WriteToLog(ex.ToString()); } }
/**************************************************************************************************/ private void NewActivePatient(object sender, NewActivePatientEventArgs e) { ClearControls(); patientRecordHeader1.setPatient(SessionManager.Instance.GetActivePatient()); loadingCircle1.Visible = true; loadingCircle1.Enabled = true; if (proband != null) proband.ReleaseListeners(this); proband = e.newActivePatient; if (proband != null) { Enabled = true; proband.AddHandlersWithLoad(null, activePatientLoaded, null); backgroundWorker1.RunWorkerAsync(); } else { Enabled = false; } }
public void setPatient(Patient proband) { if (proband != null) { PCP.Text = ""; if (patient != null) { patient.ReleaseListeners(this); patient.Providers.ReleaseListeners(this); } patient = proband; Providers = patient.Providers; if (patient != null) { patient.AddHandlersWithLoad(activePatientChanged, activePatientLoaded, null); patient.Providers.AddHandlersWithLoad(null, ProvidersLoaded, null); } } else { PatientName.Text = ""; HomePhone.Text = ""; age.Text = ""; MRN.Text = ""; CellPhone.Text = ""; DOB.Text = ""; WorkPhone.Text = ""; PCP.Text = ""; if (patient != null) { patient.ReleaseListeners(this); patient.Providers.ReleaseListeners(this); } patient = proband; } }
/**************************************************************************************************/ private void InitNewPatient() { // get active patient object from session manager proband = SessionManager.Instance.GetActivePatient(); ClearControls(); if (proband != null) { proband.AddHandlersWithLoad(activePatientChanged, activePatientLoaded, null); proband.FHx.AddHandlersWithLoad(FHChanged, FHLoaded, FHItemChanged); } }