void frmEditPowerset_Load(object sender, EventArgs e) { Enums.ePowerSetType ePowerSetType = Enums.ePowerSetType.None; this.ListPowers(); this.txtName.Text = this.myPS.DisplayName; this.cbNameGroup.BeginUpdate(); this.cbNameGroup.Items.Clear(); foreach (object key in (IEnumerable <string>)DatabaseAPI.Database.PowersetGroups.Keys) { this.cbNameGroup.Items.Add(key); } this.cbNameGroup.EndUpdate(); this.cbNameGroup.Text = this.myPS.GroupName; this.txtNameSet.Text = this.myPS.SetName; this.txtDesc.Text = this.myPS.Description; this.FillTrunkGroupCombo(); this.FillTrunkSetCombo(); this.chkNoTrunk.Checked = this.myPS.UIDTrunkSet == ""; this.FillLinkGroupCombo(); this.FillLinkSetCombo(); this.chkNoLink.Checked = this.myPS.UIDLinkSecondary == ""; if (this.myPS.SetType == Enums.ePowerSetType.Primary) { this.gbLink.Enabled = true; } else { this.gbLink.Enabled = false; this.cbLinkSet.SelectedIndex = -1; this.cbLinkGroup.SelectedIndex = -1; this.chkNoLink.Checked = true; } this.DisplayIcon(); this.cbAT.BeginUpdate(); this.cbAT.Items.Clear(); this.cbAT.Items.Add("All / None"); int num = DatabaseAPI.Database.Classes.Length - 1; for (int index = 0; index <= num; ++index) { this.cbAT.Items.Add(DatabaseAPI.Database.Classes[index].DisplayName); } this.cbAT.EndUpdate(); this.cbAT.SelectedIndex = this.myPS.nArchetype + 1; this.cbSetType.BeginUpdate(); this.cbSetType.Items.Clear(); this.cbSetType.Items.AddRange((object[])Enum.GetNames(ePowerSetType.GetType())); this.cbSetType.EndUpdate(); this.cbSetType.SelectedIndex = (int)this.myPS.SetType; this.ListMutexGroups(); this.ListMutexSets(); this.Loading = false; this.DisplayNameData(); }