Beispiel #1
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     timeout = timeout + 5;
     if (timeout >= 700)
     {
         timeout = 0;
         MetroLink link = (Form1.Instance.Controls["mlBack"] as MetroLink);
         link.PerformClick();
     }
 }
Beispiel #2
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            timeout = timeout + 5;
            if (timeout >= 700)
            {
                timeout = 0;
                MetroLink link = (Form1.Instance.Controls["mlBack"] as MetroLink);
                link.PerformClick();
            }

            if (FormUsed.FormNow == "Main")
            {
                timer1.Enabled = false;
                timeout        = 0;
            }
        }