Exemple #1
0
        /// <summary>
        /// FormSimcaGrid FormClosed evevt handler
        /// </summary>
        /// <param name="sender">object</param>
        /// <param name="e">event args</param>
        private void FormSimcaGrid_FormClosed(object sender, FormClosedEventArgs e)
        {
            if (_formGridInstance != null)
            {
                _formGridInstance.GridClosed -= FormSimcaGrid_FormClosed;
                _formGridInstance.ApplyClick -= FormSimcaGrid_ApplyClick;
                _formGridInstance.Dispose();
                _formGridInstance = null;
            }

            _checkBoxShowTables.Checked = false;
        }
Exemple #2
0
        /// <summary>
        /// checkBoxShowTables CheckedChanged event handler
        /// </summary>
        /// <param name="sender">sender</param>
        /// <param name="e">event args</param>
        private void CheckBoxShowTables_CheckedChanged(object sender, EventArgs e)
        {
            if (_checkBoxShowTables.Checked)
            {
                if (_formGridInstance == null)
                {
                    _formGridInstance = new FormSimcaGrid(_scoreData, _loadingData, _sPlotData, _tabControlPlot.SelectedIndex);
                }

                _formGridInstance.GridClosed += FormSimcaGrid_FormClosed;
                _formGridInstance.ApplyClick += FormSimcaGrid_ApplyClick;
                _formGridInstance.Show(this);
            }
            else
            {
                if (_formGridInstance != null)
                {
                    _formGridInstance.Close();
                }
            }
        }