private void linLableForgetPass_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { log.Info(_username + " clicked on reset link"); AccountManagement _accountManForm = AccountManagement.CreateInstance(AccountManagement.UserManageMode.eUserReset, _username); _accountManForm.TopMost = true; _accountManForm.Show(); }
private void linLabelSignUP_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { //log.Info(_username + " clicked on SignUp "); AccountManagement _accountManForm = AccountManagement.CreateInstance(AccountManagement.UserManageMode.eUserRegistration, _username); _accountManForm.TopMost = true; _accountManForm.Show(); }
public static AccountManagement CreateInstance(UserManageMode mode, string loggedInUsername) { loggedInUserName = loggedInUsername; if (loggedInUserName == null) { log.Error("Logged in user name is null"); } if (_onlyAccountManagement == null) { _currentManageMode = mode; _onlyAccountManagement = new AccountManagement(mode); } else { if (_currentManageMode != mode) { _onlyAccountManagement.Close(); _onlyAccountManagement = new AccountManagement(mode); } } return(_onlyAccountManagement); }
private void AccountManagement_FormClosed(object sender, FormClosedEventArgs e) { _onlyAccountManagement = null; }
private void userManagementToolStripMenuItem_Click(object sender, EventArgs e) { _accountManagementForm = AccountManagement.CreateInstance(AccountManagement.UserManageMode.eManagement, _loginForm._username); _accountManagementForm.TopMost = true; _accountManagementForm.Show(); }