private void button3_Click(object sender, EventArgs e) { DialogResult res = MessageBox.Show(this, "Are you sure ?", "confirmation", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning); if (res == DialogResult.OK) { LightManager.Clear(); } }
private void button3_Click(object sender, EventArgs e) { DialogResult res = MessageBox.Show(this, "Are you sure ?", "confirmation", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning); if (res == DialogResult.OK) { LightManager.Clear(); } }