diff --git a/Analogy/Forms/FirstTimeRunForm.cs b/Analogy/Forms/FirstTimeRunForm.cs index f9f6ee13..ff8ed846 100644 --- a/Analogy/Forms/FirstTimeRunForm.cs +++ b/Analogy/Forms/FirstTimeRunForm.cs @@ -1,10 +1,10 @@ -using DevExpress.XtraEditors; +using Analogy.DataTypes; +using DevExpress.XtraEditors; +using DevExpress.XtraEditors.Controls; using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; -using Analogy.DataTypes; -using DevExpress.XtraEditors.Controls; namespace Analogy.Forms { @@ -22,7 +22,7 @@ public FirstTimeRunForm() // This line of code is generated by Data Source Configuration Wizard } - private void FirstTimeRunForm_Load(object sender, EventArgs e) + private async void FirstTimeRunForm_Load(object sender, EventArgs e) { if (DesignMode) { @@ -30,6 +30,8 @@ private void FirstTimeRunForm_Load(object sender, EventArgs e) } Icon = UserSettingsManager.UserSettings.GetIcon(); + await FactoriesManager.Instance.InitializeBuiltInFactories(); + await FactoriesManager.Instance.AddExternalDataSources(); chkLstDataProviderStatus.CustomizeItem += (s, e) => { FactoryCheckItem bind = (FactoryCheckItem)e.Value; @@ -37,8 +39,8 @@ private void FirstTimeRunForm_Load(object sender, EventArgs e) e.TemplatedItem.Elements[1].Text = $"{bind.Name} (id:{bind.ID})"; e.TemplatedItem.Elements[2].Text = bind.Description; }; - chkLstDataProviderStatus.ItemCheck+=(s,e) => SaveSettings(); - + chkLstDataProviderStatus.ItemCheck += (s, e) => SaveSettings(); + foreach (var setting in Settings.FactoriesOrder) { FactorySettings factory = Settings.GetFactorySetting(setting);