Ejemplo n.º 1
0
        /**************************************************************************************************/
        /**************************************************************************************************/
        //  the default constructor for a view configuration
        public ViewConfiguration()
        {
            //create the list ofviews in this configuration
            Views = new Dictionary<HraView, DockState>();

            RiskClinicDashboard rcd = new RiskClinicDashboard();
            Views.Add(rcd, WeifenLuo.WinFormsUI.Docking.DockState.Document);

            //MyRiskClinicPatients myrcp = new MyRiskClinicPatients();
            //Views.Add(myrcp, WeifenLuo.WinFormsUI.Docking.DockState.Document);

            //BreastCancerRiskFactors bcrf = new BreastCancerRiskFactors();
            //Views.Add(bcrf, WeifenLuo.WinFormsUI.Docking.DockState.Document);

            //RiskClinicMainForm rcmf = new RiskClinicMainForm();
            //Views.Add(rcmf, WeifenLuo.WinFormsUI.Docking.DockState.Document);

            //PatientTableView ptv = new PatientTableView();
            //Views.Add(ptv, WeifenLuo.WinFormsUI.Docking.DockState.Document);

            /*
            //for now, just add an appointmentsView and call it a day
            PatientListView plv = new PatientListView();
            Views.Add(plv, WeifenLuo.WinFormsUI.Docking.DockState.DockLeft);

            PedigreeForm pf = new PedigreeForm();
            Views.Add(pf,WeifenLuo.WinFormsUI.Docking.DockState.Document);
            */
        }
Ejemplo n.º 2
0
        /************************/
        private IDockContent GetContentFromPersistString(string persistString)
        {
            if (persistString == typeof(RiskClinicDashboard).ToString())
            {
                rcd = new RiskClinicDashboard();
                rcd.PushViewStack = PushViewOnMainWindow;
                viewStack.Push(rcd);
                return rcd;
            }
            if (persistString == typeof(BreastImagingDashboard).ToString())
            {
                bid = new BreastImagingDashboard();
                bid.PushViewStack = PushViewOnMainWindow;
                viewStack.Push(bid);
                return bid;
            }
            if (persistString == typeof(MyScheduleView).ToString())
            {
                mpv = new MyScheduleView();
                mpv.PushViewStack = PushViewOnMainWindow;
                viewStack.Push(mpv);
                return mpv;
            }

            if (persistString == "RiskApps3.View.RiskClinic.MyPatientsView")
            {
                RiskApps3.Model.Clinic.Dashboard.myPatientsQueue p_MyPatientsQueue = new Model.Clinic.Dashboard.myPatientsQueue();
                HighRiskFollowupView hrfv = new HighRiskFollowupView(p_MyPatientsQueue);
                hrfv.PushViewStack = PushViewOnMainWindow;
                viewStack.Push(hrfv);
                return hrfv;
            }

            return null;
        }
Ejemplo n.º 3
0
 /**************************************************************************************************/
 private void InitDefaultConfig()
 {
     rcd = new RiskClinicDashboard();
     rcd.Show(theDockPanel);
     rcd.PushViewStack = PushViewOnMainWindow;
     rcd.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;
 }
Ejemplo n.º 4
0
 /**************************************************************************************************/
 private void dashboardToolStripMenuItem_Click(object sender, EventArgs e)
 {
     RiskClinicDashboard rcd = new RiskClinicDashboard();
     rcd.Show(theDockPanel);
     //rcd.AddViewToParent = AddView;
     rcd.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;
 }