public void PopulateSimObjects() { //Thread.Sleep(1000); if (sims == null) { sims = db.AllExistingSims(); } int w = this.Width - 210; //simWinMain = new SimulatorsWindowMain(sims, this, consoleAreaPanel.Width); simWinMain = new SimulatorsWindowMain(sims, this, w); }
public SettingsWindow(ConsoleWindow cw) { InitializeComponent(); origin = cw; db = new SQLiteController(); bs = db.PullBusinessSettings(); SetTheme(); sims = db.AllExistingSims(); SetSelectedTab(simSettingsTab, simSettingsTabBtn); selectSimDropdown.SelectedIndexChanged += SelectSimFromDropdown; PopulateSimDropdown(); PopulateCurrentPriceOptions(); EstablishBusinessSettings(); businessSettingsTab.Click += ((sender, e) => businessSettingsTab.Focus()); EstablishUserManagement(); }