private void OcistiKontrole() { TxtIme.Text = string.Empty; TxtPassword.Text = string.Empty; IsAdmin.IsChecked = false; TxtIme.Focus(); }
private void BtnDodaj_Click(object sender, RoutedEventArgs e) { if (string.IsNullOrWhiteSpace(TxtIme.Text.Trim()) || string.IsNullOrWhiteSpace(TxtPassword.Text.Trim())) { MessageBox.Show("Upišite nešto u text boxove!"); TxtIme.Focus(); return; } if (!DaliPostoji()) { return; } KriptirajKorisnika(); ProcesuirajKorisnika(); OcistiKontrole(); }
private void UserControl_Loaded(object sender, RoutedEventArgs e) { PopuniMrezu(); TxtIme.Focus(); }