예제 #1
0
 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();
        }
예제 #3
0
        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();
            }
        }
예제 #4
0
        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();
            }
        }
예제 #5
0
 public virtual void Start()
 {
     Initialize();
     MvvmApplication.Start();
 }
 public virtual void Start()
 {
     Initialize();
     _isStarted = true;
     MvvmApplication.Start();
 }