Beispiel #1
0
        private void fmAddLayers_FormClosed(object sender, FormClosedEventArgs e)
        {
            string sTag = m_CurrentControl.Tag.ToString();

            try
            {
                CMedToolsSubs.writeRegKey(Microsoft.Win32.Registry.LocalMachine, "SOFTWARE\\City of Medford", "AddLayersTab", sTag);
            }
            catch
            {
                // just move on  ... don't throw an error
            }

            //this.Hide();
            if (SConst.m_pCheckedLayers != null)
            {
                SConst.m_pCheckedLayers.Clear();
            }
            this.Dispose();
        }
Beispiel #2
0
        private void closeForm()
        {
            if (BoundariesPanel != null)
            {
                BoundariesPanel = null;
            }

            if (CensusPanel != null)
            {
                CensusPanel = null;
            }

            if (EmergencyPanel != null)
            {
                EmergencyPanel = null;
            }

            if (EnvironmentPanel != null)
            {
                EnvironmentPanel = null;
            }

            if (InfrastructPanel != null)
            {
                InfrastructPanel = null;
            }

            if (PhotoPanel != null)
            {
                PhotoPanel = null;
            }

            if (ServiceDistrictsPanel != null)
            {
                ServiceDistrictsPanel = null;
            }

            if (SoilsTopoPanel != null)
            {
                SoilsTopoPanel = null;
            }

            if (StructuresPanel != null)
            {
                StructuresPanel.Dispose();
            }

            if (TaxlotsPanel != null)
            {
                TaxlotsPanel = null;
            }

            if (TransportationPanel != null)
            {
                TransportationPanel = null;
            }

            if (WaterPanel != null)
            {
                WaterPanel = null;
            }

            if (ZoningPanel != null)
            {
                ZoningPanel = null;
            }

            if (UtilityPanel != null)
            {
                UtilityPanel = null;
            }

            if (EditorPanel != null)
            {
                EditorPanel = null;
            }

            if (MapServicePanel != null)
            {
                MapServicePanel = null;
            }

            string sTag = m_CurrentControl.Tag.ToString();

            try
            {
                CMedToolsSubs.writeRegKey(Microsoft.Win32.Registry.LocalMachine, "SOFTWARE\\City of Medford", "AddLayersTab", sTag);
            }
            catch (Exception ex)
            {
                // just move on  ... don't throw an error
            }

            //CAddLayers oAddLayers = new CAddLayers();
            //oAddLayers.closeForm();

            this.Close();
            this.Dispose();

            //reloadForm();
        }