Example #1
0
        public ProductToUnblock(ScreenViewModel parent)
        {
            parent.PropertyChanged += ParentOnPropertyChanged;

            /*UnblockCommand = new RelayCommand(() =>
                                                  {
                                                      WaitingOnUnblock = true;
                                                      _coappService.UnblockPackage(canonicalName).ContinueWith(
                                                          AfterUnblockAttempt);
                                                  });*/

            ShowErrorMessage = new RelayCommand(RunSendErrorMessage);
        }
Example #2
0
 public void GoTo(ScreenViewModel viewModel, bool saveInHistory)
 {
     Logger.Message("Going to {0}, from {1}. Save in history? {2} " + Environment.NewLine, viewModel.GetType().Name, Current == null ? "null" : Current.GetType().Name, saveInHistory);
     if (Current != null)
     {
         Current.FireUnload();
         if (_saveNextInHistory)
             _innerStack.Push(Current);
     }
     _saveNextInHistory = saveInHistory;
     Current = viewModel;
     Messenger.Default.Send(new GoToMessage { Destination = Current });
     Current.FireLoad();
 }
Example #3
0
 public void GoTo(ScreenViewModel viewModel)
 {
     GoTo(viewModel, true);
 }