Пример #1
0
        private void InitializeMain()
        {
            // Local Database
            RecentDB.Open();

            // Load Modules
            SDKManager.Init();

            mainWindow = new MainWindow();
        }
Пример #2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            // Local Database
            RecentDB.Open();

            // Load Modules
            SDKManager.Init();

            base.OnStartup(e);
        }
Пример #3
0
        static SDKManager()
        {
            SDKManager.Init();

            types     = GetModuleTypesCore().ToArray();
            functions = types
                        .Select(at => at.Element)
                        .ToDictionary(
                t => t,
                t => GetFunctionsCore(t).ToArray());
        }
Пример #4
0
        private async SysTask InitializeLogin()
        {
            UserDB.Open();

            if (UserDB.HasUser() && await IsValidated(UserDB.GetUser()))
            {
                GlobalModel.Instance.User = UserDB.GetUser();

                InitializeMain();
            }
            else
            {
                // Local Database
                RecentDB.Open();

                // Load Modules
                SDKManager.Init();

                mainWindow = new LoginWindow();
            }
        }