private void btnMC_Click(object sender, EventArgs e) { var result = MessageBox.Show("Do you want start game at now?", "Message", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); if (result == DialogResult.Yes) { activateButton(sender, activeColor); Form frmMC = new MC_UI(); frmMC.Show(); this.WindowState = FormWindowState.Minimized; } }
public static void startMC() { Form frmMC = new MC_UI(); frmMC.Show(); }