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()); } }
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); }
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()); } }