private void btResetPassword_Click(object sender, EventArgs e) { //makes sure there is only one passform instantiation if (ResetPasswordForm.instantiations == 0) { resetForm = new ResetPasswordForm(); resetForm.Show(); } }
public SuccessForm(ResetPasswordForm form) { InitializeComponent(); instantiations++; form.Close(); }