Пример #1
0
 private void OcistiKontrole()
 {
     TxtIme.Text       = string.Empty;
     TxtPassword.Text  = string.Empty;
     IsAdmin.IsChecked = false;
     TxtIme.Focus();
 }
Пример #2
0
 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();
 }
Пример #3
0
 private void UserControl_Loaded(object sender, RoutedEventArgs e)
 {
     PopuniMrezu();
     TxtIme.Focus();
 }