private void button4_Click(object sender, EventArgs e) { { if (textBox1.Text != "" || textBox2.Text != "") { DialogResult = MessageBox.Show("Leave Form?", "Alert", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); } if (DialogResult == DialogResult.Yes) { tr = true; this.Close(); GC.Collect(); GC.WaitForPendingFinalizers(); AboutMarathon AboutMarathonForm = new AboutMarathon(); AboutMarathonForm.Show(); return; } tr = true; this.Close(); GC.Collect(); GC.WaitForPendingFinalizers(); AboutMarathon AboutMarathonForm1 = new AboutMarathon(); AboutMarathonForm1.Show(); } }
private void button3_Click(object sender, EventArgs e) { this.Hide(); timer.Stop(); AboutMarathon Frm = new AboutMarathon(); Frm.Show(); }
private void button4_Click(object sender, EventArgs e) { tr = true; this.Close(); GC.Collect(); GC.WaitForPendingFinalizers(); AboutMarathon Frm = new AboutMarathon(); Frm.Show(); }