private void olvTTSettings_MouseDoubleClick(object sender, MouseEventArgs e) { TeamTypeEntry entry = olvTTSettings.SelectedObject as TeamTypeEntry; if (entry.Option.GetType() == typeof(TeamTypeOptionBool)) { entry.Value = entry.Value == entry.Option.List[1] ? entry.Option.List[0] : entry.Option.List[1]; } else { JumpToAIObject(entry.Value as IAIObject); } }
private void olvTTSettings_MouseDoubleClick(object sender, MouseEventArgs e) { TeamTypeEntry entry = olvTTSettings.SelectedObject as TeamTypeEntry; JumpToAIObject(entry.Value as IAIObject); }
public TeamTypeEntry(TeamTypeEntry other) { this.option = other.option; this.Value = other.Value; }