Esempio n. 1
0
        /**************************************************************************************************/
        private void SimpleRiskModelView_Load(object sender, EventArgs e)
        {
            if (!ViewClosing)
            {
                theDockPanel.AllowEndUserDocking = SessionManager.Instance.AllowDockDragAndDrop;

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

                if (File.Exists(configFile))
                {
                    theDockPanel.LoadFromXml(configFile, m_deserializeDockContent);
                }
                else
                {
                    pf             = new PedigreeImageView();
                    pf.delayedDraw = true;
                    //pf.SetMode("MANUAL");
                    //pf.getPedigreeSettingsForm().showBrcaScores();
                    pf.showBrcaScores = true;
                    pf.Show(theDockPanel);
                    pf.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;

                    gtrv = new GenTestRecommendationsView();
                    gtrv.Register(ChangeSyndromeDelegate);
                    gtrv.Show(theDockPanel);
                    gtrv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.DockRight;
                }

                pf.DoDelayedDraw();
            }
        }
Esempio n. 2
0
        private IDockContent GetContentFromPersistString(string persistString)
        {
            if (persistString == typeof(PedigreeForm).ToString())
            {
                pf             = new PedigreeImageView();
                pf.delayedDraw = true;
                //pf.SetMode("MANUAL");
                //pf.getPedigreeSettingsForm().showBrcaScores();
                pf.showBrcaScores = true;
                return(pf);
            }

            if (persistString == typeof(GenTestRecommendationsView).ToString())
            {
                gtrv = new GenTestRecommendationsView();
                gtrv.Register(ChangeSyndromeDelegate);
                return(gtrv);
            }
            else
            {
                return(null);
            }
        }