private void InitDatabase() { using (var win = new DatabaseInitProgressWindow()) { win.StartPosition = FormStartPosition.CenterParent; win.ShowDialog(); ReloadRebrickableBaseData(); } }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (!SettingsManager.HasInitialized) { SettingsManager.Initialize(); } LDDEnvironment.Initialize(); RebrickableAPI.ApiKey = "aU49o5xulf"; RebrickableAPI.InitializeClient(); if (!SettingsManager.DatabaseExists()) { using (var win = new DatabaseInitProgressWindow()) { win.StartPosition = FormStartPosition.CenterParent; win.ShowDialog(); } } }