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