Beispiel #1
0
        public void reloadUsers()
        {
            usernames = dbController.getListOfActiveUsernames();
            Employee employee;
            User     user;

            userEmployeeMap.Clear();

            foreach (string username in usernames)
            {
                user     = dbController.getUserFromId(username);
                employee = dbController.getEmployeeFromUser(user);
                userEmployeeMap.Add(username, employee);
            }

            populateUserListbox();
        }
Beispiel #2
0
        private void authorizeLogin()
        {
            if (!loginPane.isLock)
            {
                loginPane.hideLockPane();
            }

            txtUsername.Clear();
            txtPassword.Clear();

            EmployeeArgs employeeArgs = new EmployeeArgs(dbController.getEmployeeFromUser(user));

            masterController.OnEmployeeLogin(employeeArgs);
        }