/// <summary>
 /// Creates an account for the selected employee
 /// </summary>
 private void OnCreateAccountCommand()
 {
     try
     {
         var result = _dialogService.ShowDialog <NewEmployeeRegisterWindow, NewEmployeeRegisterWindowViewModel, int, object>(Employee.Value.Id);
         if (result.Accepted)
         {
             _dialogService.ShowAlert($"{Employee.Value.Name} dolgozó felhasználója sikeresen létrehozva!");
             _navigationService.GoBack();
         }
     }
     catch (Exception e)
     {
         _loggingService.LogInformation("Error during creation of new account!", e);
         _dialogService.ShowWarning(e.Message);
     }
 }
Exemple #2
0
 private void OnCancelCommand()
 {
     _navigationService.GoBack();
 }