private void GoToWorkSpace_Button_Click(object sender, EventArgs e) { Form1 f1Form = new Form1(); DateAndTime.Stop(); this.Hide(); f1Form.Show(); }
private void Close_Button_Click(object sender, EventArgs e) { DialogResult dialog = MessageBox.Show("Are you sure you want to exit?", "Closing App", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (dialog == DialogResult.Yes) { DateAndTime.Stop(); Environment.Exit(1); } //else if(dialog == DialogResult.No) //{ //} }