コード例 #1
0
 public void AddNewButtonClick()
 {
     try
     {
         _citizenService.AddCitizen(_viewModel.NewName, _viewModel.NewSpecie.SpecieId, _viewModel.NewRole.RoleId,
                                    _viewModel.NewStatus);
         _viewModel.CitizensGridDataBind();
     }
     catch (SkywalkerAlertException ex)
     {
         _viewModel.BlockUI();
     }
     catch (Exception ex)
     {
         BaseException.HandleException(ex, false);
         _viewModel.ShowErrorMessage(ex.Message);
     }
 }