private void cancel_Click(object sender, EventArgs e) { Sign_in sign_in = new Sign_in(); DialogResult result; result = MessageBox.Show("Ви впевнений?", "Попередження", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); if (result == DialogResult.Yes) { this.Close(); sign_in.Show(); } }
private void Head_FormClosed(object sender, FormClosedEventArgs e) { Sign_in signin = new Sign_in(); signin.Show(); }