private void MainWindow_Loaded(object sender, RoutedEventArgs e) { var version = GetType().Assembly.GetName().Version; Title = $"HOMM3 HotA ({SupportedHotaVersion}) Calculator {version.Major}.{version.Minor}.{version.Build}"; cmbPreset.ItemsSource = Presets; cmbMonsterSize.ItemsSource = MonsterSizes; cmbMonster.ItemsSource = Monsters; cmbMapObject1.ItemsSource = MapObjects.ToList(); cmbMapObject2.ItemsSource = MapObjects.ToList(); cmbMapObject3.ItemsSource = MapObjects.ToList(); cmbMapObject4.ItemsSource = MapObjects.ToList(); cmbMapObject5.ItemsSource = MapObjects.ToList(); cmbMapObject6.ItemsSource = MapObjects.ToList(); cmbMonsterStrengthZone.ItemsSource = MonsterStrengthZones; cmbMonsterStrengthZone.SelectedIndex = 1; cmbMonsterStrengthMap.ItemsSource = MonsterStrengthMaps; cmbMonsterStrengthMap.SelectedIndex = 2; cmbMonsterSize.SelectedIndex = 1; txtWeek.Text = "1"; txtZoneTotalCount.Text = "2"; txtZoneCastleCount.Text = "0"; txtZoneConfluxCount.Text = "0"; txtZoneCoveCount.Text = "0"; txtZoneDungeonCount.Text = "0"; txtZoneFortressCount.Text = "0"; txtZoneInfernoCount.Text = "0"; txtZoneNecropolisCount.Text = "0"; txtZoneRampartCount.Text = "0"; txtZoneStrongholdCount.Text = "0"; txtZoneTowerCount.Text = "0"; RefreshUi(); }