コード例 #1
0
ファイル: AdminMainForm.cs プロジェクト: mahitosh/HRA4
        /**************************************************************************************************/
        private IDockContent GetContentFromPersistString(string persistString)
        {
            if (persistString == typeof(HighRiskFollowupView).ToString())
            {
                masterParagraphView = new MasterParagraphListView();
                return masterParagraphView;
            }

            return null;
        }
コード例 #2
0
        /**************************************************************************************************/
        private IDockContent GetContentFromPersistString(string persistString)
        {
            if (persistString == typeof(HighRiskFollowupView).ToString())
            {
                masterParagraphView = new MasterParagraphListView();
                return(masterParagraphView);
            }

            return(null);
        }
コード例 #3
0
ファイル: AdminMainForm.cs プロジェクト: mahitosh/HRA4
        /**************************************************************************************************/
        private void RiskClinicFamilyHistoryView_Load(object sender, EventArgs e)
        {
            string configFile = SessionManager.SelectDockConfig("AdminMainForm.config");

            DeserializeDockContent m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);

            if (File.Exists(configFile))
                theDockPanel.LoadFromXml(configFile, m_deserializeDockContent);
            else
            {
                masterParagraphView = new MasterParagraphListView();
                masterParagraphView.Show(theDockPanel);
                masterParagraphView.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;
            }
        }
コード例 #4
0
        /**************************************************************************************************/
        private void RiskClinicFamilyHistoryView_Load(object sender, EventArgs e)
        {
            string configFile = SessionManager.SelectDockConfig("AdminMainForm.config");

            DeserializeDockContent m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);

            if (File.Exists(configFile))
            {
                theDockPanel.LoadFromXml(configFile, m_deserializeDockContent);
            }
            else
            {
                masterParagraphView = new MasterParagraphListView();
                masterParagraphView.Show(theDockPanel);
                masterParagraphView.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;
            }
        }