private void newAbilityButton_Click(object sender, EventArgs e) { var newForm = new AddNewAbilityForm(); if (newForm.ShowDialog() != DialogResult.OK) { return; } var abilityItem = new ListViewItem(newForm.AllowedAbility.ToString()); abilityItem.SubItems.Add(newForm.AllowedAbility.TargetType == TargetType.Me ? "Me" : "My Current Target"); abilityItem.SubItems.Add(newForm.AllowedAbility.MustBeReady ? "Yes" : "No"); abilityItem.Tag = newForm.AllowedAbility; abilitiesListView.Items.Add(abilityItem); }
private void newAbilityButton_Click(object sender, EventArgs e) { var newForm = new AddNewAbilityForm(); if (newForm.ShowDialog() != DialogResult.OK) return; var abilityItem = new ListViewItem(newForm.AllowedAbility.ToString()); abilityItem.SubItems.Add(newForm.AllowedAbility.TargetType == TargetType.Me ? "Me" : "My Current Target"); abilityItem.SubItems.Add(newForm.AllowedAbility.MustBeReady ? "Yes" : "No"); abilityItem.Tag = newForm.AllowedAbility; abilitiesListView.Items.Add(abilityItem); }