コード例 #1
0
#pragma warning restore CS8618 // 不可为 null 的字段未初始化。请考虑声明为可以为 null。

        /// <summary>
        /// 构造应用
        /// </summary>
        public App() : base()
        {
            Current = this;
            Thread.CurrentThread.Name = "Application Main Thread";
            AppLoader = new GeneralAppLoader();
            Lake      = new SunsetLake();
        }
コード例 #2
0
ファイル: VMStartup.cs プロジェクト: youla-tech/AutumnBox
        public VMStartup()
        {
            RaisePropertyChangedOnDispatcher = true;
            var appLoader = new GeneralAppLoader();

            appLoader.StepFinished += AppLoader_StepFinished;
            appLoader.Succeced     += AppLoader_Succeced;
            appLoader.Failed       += AppLoader_Failed;
            _ = appLoader.LoadAsync();
        }