Esempio n. 1
0
        private void PendingGeneticTestsView_FormClosing(object sender, FormClosingEventArgs e)
        {
            string configFile = SessionManager.SelectDockConfig("PendingGeneticTestsView.config");

            if (SessionManager.Instance.SaveLayoutOnClose)
            {
                theDockPanel.SaveAsXml(configFile);
            }

            SessionManager.Instance.RemoveHraView(this);

            patientRecordHeader1.ReleaseListeners();

            if (pf != null)
            {
                pf.ViewClosing = true;
            }

            if (gtfsv != null)
            {
                gtfsv.ViewClosing = true;
            }

            if (pf != null)
            {
                pf.Close();
            }

            if (gtfsv != null)
            {
                gtfsv.Close();
            }
        }
Esempio n. 2
0
        private void HighRiskFollowupView_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (pf != null)
            {
                pf.Close();
            }
            if (pnm != null)
            {
                pnm.Close();
            }
            if (sfv != null)
            {
                sfv.Close();
            }
            if (pcv != null)
            {
                pcv.Close();
            }

            patientRecordHeader1.ReleaseListeners();

            string configFile = SessionManager.SelectDockConfig("HighRiskFollowupView.config");

            if (SessionManager.Instance.SaveLayoutOnClose)
            {
                theDockPanel.SaveAsXml(configFile);
            }

            SessionManager.Instance.MetaData.UserGroups.ReleaseListeners(this);
            theQueue.ReleaseListeners(this);
            SessionManager.Instance.RemoveHraView(this);

            fastDataListView1.Clear();
        }
Esempio n. 3
0
        /**************************************************************************************************/
        private void SimpleRiskModelView_FormClosing(object sender, FormClosingEventArgs e)
        {
            string configFile = SessionManager.SelectDockConfig("SimpleRiskModelViewDockPanel.config");

            if (SessionManager.Instance.SaveLayoutOnClose)
            {
                theDockPanel.SaveAsXml(configFile);
            }

            if (pf != null)
            {
                pf.Close();
            }

            if (gtrv != null)
            {
                gtrv.Close();
            }


            SessionManager.Instance.RemoveHraView(this);
        }