Пример #1
0
        protected override void OnLoaded()
        {
            if (IsDesignTime)
            {
                return;
            }

            this.DataContext = this.viewModel = new ViewModelMenuHome();
        }
Пример #2
0
        protected override void OnUnloaded()
        {
            if (IsDesignTime)
            {
                return;
            }

            this.DataContext = null;
            this.viewModel.Dispose();
            this.viewModel = null;
        }
Пример #3
0
        protected override void OnUnloaded()
        {
            if (IsDesignTime)
            {
                return;
            }

            this.DataContext = null;
            this.viewModel.Dispose();
            this.viewModel = null;

            Api.Client.MasterServer.DemoVersionInfoChanged -= MasterServerDemoVersionInfoChangedHandler;
        }
Пример #4
0
        protected override void OnLoaded()
        {
            if (IsDesignTime)
            {
                return;
            }

            this.DataContext = this.viewModel = new ViewModelMenuHome();

            DemoVersionWelcomeMenu.DisplayIfRequired();
            FeaturesSlideshow.DisplayIfRequired();

            Api.Client.MasterServer.DemoVersionInfoChanged += MasterServerDemoVersionInfoChangedHandler;
        }