예제 #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();
 }