Beispiel #1
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();
        }
        private void NotYetInformedGeneticTestsView_FormClosing(object sender, FormClosingEventArgs e)
        {
            string configFile = SessionManager.SelectDockConfig("NotYetInformedGeneticTestsView.config");

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

            SessionManager.Instance.RemoveHraView(this);

            patientRecordHeader1.ReleaseListeners();

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

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

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

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

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


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

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

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

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

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