private void btLetPlay_Click(object sender, EventArgs e) { NameUser = tbNameType.Text; FormPlus formPlus = new FormPlus(); this.Hide(); formPlus.Show(); }
private void btBack_Click(object sender, EventArgs e) { DialogResult result = new DialogResult(); result = MessageBox.Show("Are You Sure?", "Go Back", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning); while (true) { if (result == DialogResult.OK) { DivideForm divideForm = new DivideForm(); divideForm.clearData(); formOption.Show(); this.Hide(); break; } else { break; } } }
private void btBack_Click_1(object sender, EventArgs e) { DialogResult result = new DialogResult(); result = MessageBox.Show("Are You Sure?", "Go Back", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning); while (true) { if (result == DialogResult.OK) { FormPlus formPlus = new FormPlus(); formPlus.Show(); this.Hide(); break; } else { break; } } }