FC3Editor.UI.IndentedComboBox.Item.GetChildren C# (CSharp) Method

GetChildren() public method

public GetChildren ( ) : IEnumerable
return IEnumerable
            public IEnumerable<IndentedComboBox.Item> GetChildren()
            {
                foreach (IndentedComboBox.Item current in this.m_childList)
                {
                    yield return current;
                }
                yield break;
            }

Usage Example

Exemplo n.º 1
0
 private void UpdateItem(IndentedComboBox.Item item, IndentedComboBox.Item selectedItem, ref int index)
 {
     foreach (IndentedComboBox.Item current in item.GetChildren())
     {
         if (current == selectedItem)
         {
             index = this.comboBox.Items.Count;
         }
         this.comboBox.Items.Add(current);
         this.UpdateItem(current, selectedItem, ref index);
     }
 }
IndentedComboBox.Item