private void InitializeMain() { // Local Database RecentDB.Open(); // Load Modules SDKManager.Init(); mainWindow = new MainWindow(); }
protected override void OnStartup(StartupEventArgs e) { // Local Database RecentDB.Open(); // Load Modules SDKManager.Init(); base.OnStartup(e); }
static SDKManager() { SDKManager.Init(); types = GetModuleTypesCore().ToArray(); functions = types .Select(at => at.Element) .ToDictionary( t => t, t => GetFunctionsCore(t).ToArray()); }
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(); } }