private void pictureBox3_Click(object sender, EventArgs e) { Vypnut hybernate = new Vypnut(); hybernate.ShowDialog(); try { timer2.Interval = milisekundy; akcia = 4; timer2.Start(); } catch { //ak to len zavrieme } }
//click on picture, show second dialog, with settings private void pictureBox1_Click(object sender, EventArgs e) { Vypnut vypnut = new Vypnut(); vypnut.ShowDialog(); try { timer2.Interval = milisekundy; akcia = 1; timer2.Start(); } catch { } }
private void pictureBox2_Click(object sender, EventArgs e) { Vypnut vypnut = new Vypnut(); vypnut.ShowDialog(); // MessageBox.Show(milisekundy.ToString()); try { timer2.Interval = milisekundy; akcia = 2; timer2.Start(); } catch { //ak to len zavrieme } }