Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        private void olvTTSettings_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            TeamTypeEntry entry = olvTTSettings.SelectedObject as TeamTypeEntry;

            JumpToAIObject(entry.Value as IAIObject);
        }
Ejemplo n.º 3
0
 public TeamTypeEntry(TeamTypeEntry other)
 {
     this.option = other.option;
     this.Value  = other.Value;
 }