Example #1
0
        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);
            }
        }
Example #2
0
        private void olvTrSettings_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            TriggerTypeEntry entry = olvTrSettings.SelectedObject as TriggerTypeEntry;

            JumpToAIObject(entry.Value as IAIObject);
        }
Example #3
0
 public TriggerTypeEntry(TriggerTypeEntry other)
 {
     this.option = other.option;
     this.Value  = other.Value;
 }