Example #1
0
 private void btnSubmitGroup3_Click(object sender, RoutedEventArgs e)
 {
     if (_userId != Authentification.AuthUser.Id)
     {
         if (Authentification.DeleteUser(this._userId))
         {
             DialogHelper.ShowInfo("Uživatel odstraněn.");
             this.Close();
         }
         else
         {
             DialogHelper.ShowWarning("Uživatel nemohl být odstraněn.");
         }
     }
     else
     {
         DialogHelper.ShowWarning("Není možné odstranit aktivního uživatele.");
     }
 }