Example #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();
        }
Example #2
0
        private void HighRiskFollowupView_FormClosing(object sender, FormClosingEventArgs e)
        {
            SessionManager.Instance.MetaData.UserGroups.ReleaseListeners(this);
            patientRecordHeader1.ReleaseListeners();
            theQueue.ReleaseListeners(this);

            Patient p = SessionManager.Instance.GetActivePatient();

            if (p != null)
            {
                p.Tasks.ReleaseListeners(this);
            }
            fastDataListView1.Clear();
            SessionManager.Instance.RemoveHraView(this);
        }