Beispiel #1
0
        private void analogLayoutForm_closing(object sender, FormClosingEventArgs e)
        {
            analogLayoutForm.btn_apply.Click -= new EventHandler(analogLayout_apply);
            analogLayoutForm.FormClosing     -= new FormClosingEventHandler(analogLayoutForm_closing);

            analogLayoutForm = null;
        }
Beispiel #2
0
        // Analog Button events handling:
        private void btn_analogLayoutForm_Click(object sender, EventArgs e)
        {
            if (analogLayoutForm == null)
            {
                analogLayoutForm = new AnalogLayoutForm(analogLayout, preset.DigitalColours.MinutesUntilColour, preset.DigitalColours.OvertimeColour);
                analogLayoutForm.Show();

                analogLayoutForm.btn_apply.Click += new EventHandler(analogLayout_apply);
                analogLayoutForm.FormClosing     += new FormClosingEventHandler(analogLayoutForm_closing);
            }
        }