public override void OnValidationComplete() { _command.Execute(_groupId, ItemName); _navigation.DestroyModal(); _navigation.RefreshMenu(); }
public DeleteRequestViewModel(IDeleteRequestCommand command, INavigationHelper navigationHelper) { ConfirmDeleteCommand = new ActionCommand(() => { command.Execute(Id); navigationHelper.RefreshMenu(); navigationHelper.DestroyModal(); }); }
public override void OnValidationComplete() { if (_groupId == 0) { throw new ArgumentException("group for request not set"); } _command.Execute(_groupId, ItemName); _navigation.DestroyModal(); _navigation.RefreshMenu(); }
protected override void OnStartup(StartupEventArgs e) { BindKernel(); EnsureDatabaseIsUpToDate(); _navigation = _container.Get <INavigationHelper>(); var viewmodel = _container.Get <MainWindowViewModel>(); var window = new MainWindow { DataContext = viewmodel }; Current.MainWindow = window; _navigation.RefreshMenu(); Current.MainWindow.Show(); }