Example #1
0
        private void UpdateUser_Click(object sender, EventArgs e)
        {
            if (permLogin.Text == null || permPassword.Text == null)
            {
                return;
            }

            UsersDatabase.UpdateUser(SearcherUserTextField.Text, permLogin.Text, permPassword.Text, GetPermision());
            UsersDatabase.Save();
            UsersDatabase.Load();
            UpdateAll();
        }
Example #2
0
        private void CreateButton_Click(object sender, EventArgs e)
        {
            if (permLogin.Text == null || permPassword.Text == null)
            {
                return;
            }

            UsersDatabase.CreateUser(permLogin.Text, permPassword.Text, GetPermision());
            UsersDatabase.Save();
            UsersDatabase.Load();
            UpdateAll();
        }
Example #3
0
 private void MainWindow_Load(object sender, EventArgs e)
 {
     UsersDatabase.Load();
 }
Example #4
0
 public void UpdateAll()
 {
     UsersDatabase.Load();
     UpdateLeft();
 }