private void changePasswordBtn_Click(object sender, EventArgs e) { if (changeUserPassword()) { if (userID == 1) { MainClass.showMsg("Password Changed Successfully, Logging out for changes!", "Success", "success"); MainClass.appStatus = ""; MainClass.immediateLogoutOn(); MainClass.closeMDI(); } else { MainClass.showMsg("Password Changed Successfully!", "Success", "success"); MainClass.enable_reset(passwordChangePanel); } } else { MainClass.showMsg("Current Password doesn't match!", "Error", "Error"); } }