private void RandomTiler_Load(object sender, EventArgs e) { var tiles = RandomTiles.Load(); cmbTileSet.BeginUpdate(); foreach (RandomTilesList tileset in tiles.List) { cmbTileSet.Items.Add(tileset); } cmbTileSet.EndUpdate(); if (cmbTileSet.Items.Count > 0) { cmbTileSet.SelectedIndex = 0; } var hues = HueGroups.Load(); cmbHues.BeginUpdate(); foreach (var huelist in hues.Groups) { cmbHues.Items.Add(huelist); } cmbHues.EndUpdate(); if (cmbHues.Items.Count > 0) { cmbHues.SelectedIndex = 0; } UpdateFillText(); // Maps cmbMap.BeginUpdate(); for (var i = 0; i < 4; i++) { if (Pandora.Profile.Travel.EnabledMaps[i]) { cmbMap.Items.Add(Pandora.Profile.Travel.MapNames[i]); } } cmbMap.EndUpdate(); if (cmbMap.Items.Count > 0) { cmbMap.SelectedIndex = 0; } }
private void HueSelector_Load(object sender, System.EventArgs e) { m_Groups = HueGroups.Load(); foreach (HuesCollection c in m_Groups.Groups) { cmbGroups.Items.Add(c); } if (cmbGroups.Items.Count > 0) { cmbGroups.SelectedIndex = 0; } }
private void m_HueForm_Closed(object sender, EventArgs e) { linkLabel1.Enabled = true; // Update hues var hues = HueGroups.Load(); cmbHues.BeginUpdate(); cmbHues.Items.Clear(); foreach (var hc in hues.Groups) { cmbHues.Items.Add(hc); } cmbHues.EndUpdate(); if (cmbHues.Items.Count > 0) { cmbHues.SelectedIndex = 0; } }