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(); }
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(); }
private void MainWindow_Load(object sender, EventArgs e) { UsersDatabase.Load(); }
public void UpdateAll() { UsersDatabase.Load(); UpdateLeft(); }