Exemple #1
0
        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
            }
        }
Exemple #2
0
        //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
            {
            }
        }
Exemple #3
0
        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
            }
        }