public virtual void Start() { Initialize(); if (!MvvmApplication.Context.Contains(NavigationConstants.IsDialog)) { MvvmApplication.Context.Add(NavigationConstants.IsDialog, false); } IocContainer.Get <IViewModelPresenter>().DynamicPresenters.Add(this); MvvmApplication.Start(); }
public virtual void Start() { Initialize(); if (!MvvmApplication.Context.Contains(NavigationConstants.IsDialog)) { MvvmApplication.Context.Add(NavigationConstants.IsDialog, false); } var rootPresenter = GetRootPresenter(); if (rootPresenter != null) { IocContainer.Get <IViewModelPresenter>().DynamicPresenters.Add(rootPresenter); } MvvmApplication.Start(); }
public virtual void Start() { if (Current != null && !ReferenceEquals(Current, this)) { Current.Start(); return; } Initialize(); ToolkitServiceProvider.EventAggregator.Publish(this, ApplicationStartingMessage.Instance); var context = new DataContext(MvvmApplication.Context); var viewModelPresenter = IocContainer.Get <IViewModelPresenter>(); var presenter = viewModelPresenter as IRestorableViewModelPresenter; if (presenter == null || !presenter.TryRestore(context)) { MvvmApplication.Start(); } }
public virtual void Start() { if (Current != null && !ReferenceEquals(Current, this)) { Current.Start(); return; } Initialize(); OnStart(); var context = new DataContext(MvvmApplication.Context); _hasRootPage = false; var viewModelPresenter = IocContainer.Get <IViewModelPresenter>(); var presenter = viewModelPresenter as IRestorableViewModelPresenter; if (presenter == null || !presenter.TryRestore(context)) { MvvmApplication.Start(); } }
public virtual void Start() { Initialize(); MvvmApplication.Start(); }
public virtual void Start() { Initialize(); _isStarted = true; MvvmApplication.Start(); }