Esempio n. 1
0
        private void InitializeMain()
        {
            // Local Database
            RecentDB.Open();

            // Load Modules
            SDKManager.Init();

            mainWindow = new MainWindow();
        }
Esempio n. 2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            // Local Database
            RecentDB.Open();

            // Load Modules
            SDKManager.Init();

            base.OnStartup(e);
        }
Esempio n. 3
0
        static SDKManager()
        {
            SDKManager.Init();

            types     = GetModuleTypesCore().ToArray();
            functions = types
                        .Select(at => at.Element)
                        .ToDictionary(
                t => t,
                t => GetFunctionsCore(t).ToArray());
        }
Esempio n. 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();
            }
        }