예제 #1
0
        public VMMainWindowV2()
        {
            base.RaisePropertyChangedOnDispatcher = true;
            InitTitle();
            LanguageManager.Instance.LanguageChanged += (s, e) =>
            {
                InitTitle();
            };
            AppLoader.Instance.Loaded += (s, e) =>
            {
                SLogger <VMMainWindowV2> .Info("switching");

                MainWindowBus.SwitchToMainGrid();
                SLogger <VMMainWindowV2> .Info("switched");
            };
        }
예제 #2
0
        private void Load()
        {
            ConfigHelper.Instance.SetSystemVersionInfo(GetSystemVersionInfo());
            CheckOtherAutumnBox();
            OnLoading();

            Trace.WriteLine("Loading");
            InitLogSystem();
            logger.Info("wtf");
            InitErrorHandlerSystem();
            InitLanguageSystem();
            //InitThemeSystem();
            //ShowDebugWindowIfNeed();
            //ShowGuideIfNeed();
            PrintInformations();
            InitAutumnBoxBasic();
            InitAutumnBoxOpenFx();
            RunDeviceListener();
            FetchRemoteData();
            logger.Info("fetch");
            MainWindowBus.SwitchToMainGrid();
            logger.Info("wow");
            OnLoaded();
        }