protected virtual void OnGoToNextStep(GoToNextStepEventArgs E) { try { var handler = GoToNextStep; if (handler != null) { handler(this, E); } } catch (Exception ex) { Utility.WriteLog(ex); MessageBox.Show(Utility.GetErrorMessage()); Utility.LogOut(); } }
void SOPList_GoToNextStep(object sender, GoToNextStepEventArgs e) { try { var vm = DataContext as SOPViewModel; //var sopId = sopViewModel.SopList[_sopActiveStepIndex].SOPId; //vm.SaveSopStep(sopId, this.GetCurrentUserId()); Application.Current.Dispatcher.Invoke(() => OpenNextStep(e)); this.Publish(new ChangeNotificationStatus { MessageId = vm.MessageId }); } catch (Exception ex) { Utility.WriteLog(ex); MessageBox.Show(Utility.GetErrorMessage()); Utility.LogOut(); } }
private void SearchedDangerousViolator(VehicleDetailsResponse resp) { IsControlBusy = false; var searchedDangViolatorHandler = ViolatorSearched; VehicleDetailsResponse = resp; GoToNextStepEventArgs e = new GoToNextStepEventArgs(); if (resp != null) { //e.Confirmation = (resp != null); if (searchedDangViolatorHandler != null) { searchedDangViolatorHandler(this, new EventArgs()); } } }
private void detailsCtrl_GoToNextStep(object sender, GoToNextStepEventArgs e) { try { OnGoToNextStep(e); var selectedItem = vm.SelectedPatrol; if (selectedItem == null) { return; } selectedItem.ImgCheckedSource = "../images/true.png"; vm.SelectedPatrol = null; } catch (Exception ex) { Utility.WriteLog(ex); MessageBox.Show(Utility.GetErrorMessage()); Utility.LogOut(); } }