private void RiskClinicFamilyHistoryView_Load(object sender, EventArgs e)
        {
            if (!ViewClosing)
            {
                theDockPanel.AllowEndUserDocking = SessionManager.Instance.AllowDockDragAndDrop;

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

                if (File.Exists(configFile))
                    theDockPanel.LoadFromXml(configFile, m_deserializeDockContent);
                else
                {
                    pf = new PedigreeForm();
                    //pf.SetMode("SELF_ORGANIZING");
                    pf.Show(theDockPanel);
                    pf.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;

                    fhv = new FamilyHistoryView();
                    fhv.Show(theDockPanel);
                    fhv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;

                    rdv = new RelativeDetailsView();
                    rdv.Show(theDockPanel);
                    rdv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.DockRight;

                    duv = new DocumentUploadView();
                    duv.Show(rdv.Pane, rdv);

                    pmhv = new PastMedicalHistoryView();
                    pmhv.Show(theDockPanel);
                    pmhv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.DockBottom;

                    gtv = new GeneticTestingView();
                    gtv.Show(theDockPanel);
                    gtv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.DockBottom;
                }
            }
        }
Exemple #2
0
        private void PatientContactView_Load(object sender, EventArgs e)
        {
            string configFile = SessionManager.SelectDockConfig("PatientContactView.config");

            DeserializeDockContent m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);

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

                pf = new PedigreeForm();
                pf.SetMode("MANUAL");
                //pf.Register(sessionManager);
                pf.Show(theDockPanel);
                pf.DockState = WeifenLuo.WinFormsUI.Docking.DockState.DockLeft;

                rdv = new RelativeDetailsView();
                //rdv.Register(sessionManager);
                rdv.Show(theDockPanel);
                rdv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.DockRight;

                pcv = new PatientCommunicationView();
                //pcv.Register(sessionManager);
                pcv.Show(theDockPanel);
                pcv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.DockBottom;
            }
        }
Exemple #3
0
        private void QueueNotesView_Load(object sender, EventArgs e)
        {
            theDockPanel.AllowEndUserDocking = SessionManager.Instance.AllowDockDragAndDrop;

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

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

            }
            else
            {
                pf = new PedigreeForm();
                pf.Show(theDockPanel);
                pf.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;

                pcv = new PatientCommunicationView();
                pcv.PatientHeaderVisible = false;
                pcv.InitialTask = InitialTask;
                //pcv.SplitterDistance = 0;
                pcv.Show(theDockPanel);
                pcv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;

                ntdv = new NewToDoView();
                ntdv.Show(theDockPanel);
                ntdv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.DockBottom;
            }

            patientRecordHeader1.setPatient(SessionManager.Instance.GetActivePatient());
        }