예제 #1
0
 public void SetItems(DataGridViewComboBoxCell.ObjectCollection items)
 {
     if (Nodes.Count > 0)
     {
         return;
     }
     foreach (var group in items.Cast <TreeComboBoxItem>().GroupBy(x => x.Group))
     {
         var parent = Nodes.Add(group.Key.ToString());
         foreach (var item in group)
         {
             parent.Nodes.Add(item.Display).Tag = item.Value;
         }
     }
     Sort();
 }
예제 #2
0
 public void AddRange(DataGridViewComboBoxCell.ObjectCollection value);