private void mnuRules_Click(object sender, EventArgs e) { timer1.Stop(); frmDescriptionRules rules = new frmDescriptionRules(); rules.ShowDialog(); if (rules != ActiveForm) { timer1.Start(); } }
private void mnuRules_Click(object sender, EventArgs e) { //Stops timer, opens the rules form and when the form closes it starts the timer again timer1.Stop(); frmDescriptionRules rules = new frmDescriptionRules(); rules.ShowDialog(); if (rules != ActiveForm) { timer1.Start(); } }
private void mnuRules_Click(object sender, EventArgs e) { //Stops The Timer timer1.Stop(); //Declares a form to open frmDescriptionRules rules = new frmDescriptionRules(); rules.ShowDialog(); //if the rules page has been closed it starts the timer again if (rules != ActiveForm) { timer1.Start(); } }