Beispiel #1
0
        private IDockContent GetContentFromPersistString(string persistString)
        {
            if (persistString == typeof(ExpressFamilyHistoryView).ToString())
            {
                efhv = new ExpressFamilyHistoryView();
                return efhv;
            }
            if (persistString == typeof(MammographyHxView).ToString())
            {
                mmHx = new MammographyHxView();
                return mmHx;
            }
            if (persistString == typeof(AdditionalCancerRiskFactorsView).ToString())
            {
                acrf = new AdditionalCancerRiskFactorsView();
                return acrf;
            }

            else if (persistString == typeof(PatientCommunicationView).ToString())
            {
                pcv = new PatientCommunicationView();
                pcv.routineName = "screening";
                pcv.PatientHeaderVisible = false;
                return pcv;
            }
            else
                return null;
        }
Beispiel #2
0
 private IDockContent GetContentFromPersistString(string persistString)
 {
     if (persistString == typeof(RiskClinicFamilyHistoryView).ToString())
     {
         rcfhv = new RiskClinicFamilyHistoryView();
         return rcfhv;
     }
     if (persistString == typeof(AdditionalCancerRiskFactorsView).ToString())
     {
         acrf = new AdditionalCancerRiskFactorsView();
         return acrf;
     }
     else if (persistString == typeof(CancerRiskView).ToString())
     {
         crv = new CancerRiskView();
         return crv;
     }
     else if (persistString == typeof(SimpleRiskModelView).ToString())
     {
         srmv = new SimpleRiskModelView();
         return srmv;
     }
     //else if (persistString == typeof(RiskClinicNotesView).ToString())
     //{
     //    rcnv = new RiskClinicNotesView();
     //    rcnv.PatientHeaderVisible = false;
     //    return rcnv;
     //}
     else if (persistString == typeof(PatientCommunicationView).ToString())
     {
         pcv = new PatientCommunicationView();
         pcv.PatientHeaderVisible = false;
         return pcv;
     }
     else if (persistString == typeof(Recommendations).ToString())
     {
         brecs = new Recommendations();
         return brecs;
     }
     else if (persistString == typeof(TestsView).ToString())
     {
         tv = new TestsView();
         //drv.PatientHeaderVisible = false;
         return tv;
     }
     else if (persistString == typeof(OrdersView).ToString())
     {
         ov = new OrdersView();
         return ov;
     }
     else if (persistString == typeof(PediatricRecsView).ToString())
     {
         prv = new PediatricRecsView();
         return prv;
     }
     else
         return null;
 }
Beispiel #3
0
        private void EditSurveyForm_Load(object sender, EventArgs e)
        {
            if (!ViewClosing)
            {
                theDockPanel.Visible = false;

                theDockPanel.AllowEndUserDocking = SessionManager.Instance.AllowDockDragAndDrop;

                string configFile = SessionManager.SelectDockConfig("EditSurveyFormDockPanel.config");
                DeserializeDockContent m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);

                if (File.Exists(configFile))
                {
                    theDockPanel.LoadFromXml(configFile, m_deserializeDockContent);

                }
                else
                {
                    efhv = new ExpressFamilyHistoryView();
                    efhv.Show(theDockPanel);
                    efhv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;
                    /**/
                    acrf = new AdditionalCancerRiskFactorsView();
                    acrf.Show(theDockPanel);
                    acrf.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;

                    mmHx = new MammographyHxView();
                    mmHx.Show(theDockPanel);
                    mmHx.DockState = DockState.Document;

                    pcv = new PatientCommunicationView();
                    pcv.routineName = "screening";
                    pcv.PatientHeaderVisible = false;
                    pcv.Show(theDockPanel);
                    pcv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;

                }

                if (InitialView == typeof(ExpressFamilyHistoryView))
                {
                    if (efhv != null)
                        efhv.Show();
                }
                if (InitialView == typeof (MammographyHxView))
                {
                    if (mmHx != null)
                    {
                        mmHx.Show();
                    }
                }
                if (InitialView == typeof(AdditionalCancerRiskFactorsView))
                {
                    if (acrf != null)
                        acrf.Show();
                }
                else if (InitialView == typeof(PatientCommunicationView))
                {
                    if (pcv != null)
                        pcv.Show();
                }

                //TODO implement other InitialViews as needed
                patientRecordHeader1.setPatient(SessionManager.Instance.GetActivePatient());
            }
            theDockPanel.Visible = true;
        }