Beispiel #1
0
        private void advancedForm_formClosing(object sender, FormClosingEventArgs e)
        {
            advForm.applyBtn.Click -= new EventHandler(advancedOptions_applied);
            advForm.FormClosing    -= new FormClosingEventHandler(advancedForm_formClosing);

            advForm = null;
        }
Beispiel #2
0
        /* --------------- EVENTS ---------------- */
        #region Advanced Form
        private void advanced_btn_Click(object sender, EventArgs e)
        {
            if (advForm == null)
            {
                advForm         = new AdvancedForm(storedAnalogLayout, presetList[0].ClockType, presetList[presetIndex]);
                advForm.TopMost = true;

                // Populate the settings
                advForm.populateDefaultClockType(getAllRadioNames());
                advForm.updateCurrentDeadlineTime(deadlineTimePicker.Value.ToString(deadlineTimePicker.CustomFormat));
                advForm.populateMonitorTab();
                advForm.populateSizeTab();
                // Sets the defaults
                advForm.setAdvancedDefaults();
                advForm.Show();

                advForm.applyBtn.Click += new EventHandler(advancedOptions_applied);
                advForm.FormClosing    += new FormClosingEventHandler(advancedForm_formClosing);
            }
        }