/**************************************************************************************************/ private IDockContent GetContentFromPersistString(string persistString) { if (persistString == typeof (PedigreeForm).ToString()) { pf = new PedigreeImageView(); return pf; } else if (persistString == typeof(RiskScoresView).ToString()) { rsv = new RiskScoresView(); return rsv; } else if (persistString == typeof(PatientCommunicationView).ToString()) { pcv = new PatientCommunicationView(); pcv.PatientHeaderVisible = false; return pcv; } else return null; }
private void riskCalcs_Click(object sender, EventArgs e) { if (fastDataListView1.SelectedObject == null) { MessageBox.Show("Please select a patient first.", "WARNING"); return; } Appointment appt = ((Appointment)(fastDataListView1.SelectedObject)); int apptid = appt.apptID; RiskScoresView rsv = new RiskScoresView(); //PushViewStack(rsv, WeifenLuo.WinFormsUI.Docking.DockState.Document); rsv.ShowDialog(); }