Esempio n. 1
0
 public void Add(EditorTreeItem item)
 {
     if (m_frozen)
     {
         throw new InvalidOperationException("Can't add to tree when frozen - expected BeginUpdate event first.");
     }
     m_items.Add(item.Key, item);
 }
Esempio n. 2
0
        public void Add(string key, string text, string parent)
        {
            EditorTreeItem parentItem = (parent == null) ? null : m_items[parent];
            EditorTreeItem newItem    = new EditorTreeItem {
                Key = key, Parent = parentItem, Text = text
            };

            Add(newItem);
        }
Esempio n. 3
0
 public void Add(EditorTreeItem item)
 {
     if (m_frozen) throw new InvalidOperationException("Can't add to tree when frozen - expected BeginUpdate event first.");
     m_items.Add(item.Key, item);
 }
Esempio n. 4
0
 public void Add(string key, string text, string parent)
 {
     EditorTreeItem parentItem = (parent == null) ? null : m_items[parent];
     EditorTreeItem newItem = new EditorTreeItem { Key = key, Parent = parentItem, Text = text };
     Add(newItem);
 }