Пример #1
0
        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();
        }
Пример #2
0
        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();
        }
Пример #3
0
        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);
        }
Пример #4
0
 private void AccountManagement_FormClosed(object sender, FormClosedEventArgs e)
 {
     _onlyAccountManagement = null;
 }
Пример #5
0
 private void userManagementToolStripMenuItem_Click(object sender, EventArgs e)
 {
     _accountManagementForm         = AccountManagement.CreateInstance(AccountManagement.UserManageMode.eManagement, _loginForm._username);
     _accountManagementForm.TopMost = true;
     _accountManagementForm.Show();
 }