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();
            }
        }