Exemplo n.º 1
0
        private void PatientContactView_FormClosing(object sender, FormClosingEventArgs e)
        {
            string configFile = SessionManager.SelectDockConfig("PatientContactView.config");

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

            theDockPanel.Controls.Clear();

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

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

            if (pf != null)
            {
                pf.Close();
            }
        }
Exemplo n.º 2
0
        private void RiskClinicFamilyHistoryView_FormClosing(object sender, FormClosingEventArgs e)
        {
            string configFile = SessionManager.SelectDockConfig("RiskClinicFamilyHistoryViewDockPanel.config");

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

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

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

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

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

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

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

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

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

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

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

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

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