示例#1
0
 public void Navigate(Uri uri, ref bool cancel)
 {
     if (OrderPageViewModel.UriEquals(uri, "/profile/", this._orderPageProfileUrl.Authority))
     {
         cancel = true;
         this.ResetPage();
         this._eventFacade.Publish(new ShowLoginScreenMessage());
     }
 }
示例#2
0
 public RegistrationViewModel(RegistrationSuccessViewModel successViewModel, RegistrationFailureViewModel failureViewModel, OrderPageViewModel orderPageViewModel, EventFacade eventFacade)
 {
     this._successViewModel   = successViewModel;
     this._failureViewModel   = failureViewModel;
     this._orderPageViewModel = orderPageViewModel;
     this._eventFacade        = eventFacade;
     base.get_Items().Add(this._successViewModel);
     base.get_Items().Add(this._failureViewModel);
     base.get_Items().Add(this._orderPageViewModel);
 }
示例#3
0
 public void Navigate(Uri uri)
 {
     if (OrderPageViewModel.UriEquals(uri, "/order/success/", this._orderPageUrl.Authority))
     {
         this.ResetPage();
         this._eventFacade.Publish(new ShowRegistrationSuccessScreenMessage());
         return;
     }
     if (OrderPageViewModel.UriEquals(uri, "/order/error/", this._orderPageUrl.Authority))
     {
         this.ResetPage();
         this._eventFacade.Publish(new ShowRegistrationFailureScreenMessage());
     }
 }