예제 #1
0
 public void AddRange(ContainerSubListViewItem[] items)
 {
     lock(List.SyncRoot)
     {
         for (int i=0; i<items.Length; i++)
         {
             OnItemsChanged(new ItemsChangedEventArgs(List.Add(items[i])));
         }
     }
 }
예제 #2
0
 public int Add(ContainerSubListViewItem item)
 {
     int index = List.Add(item);
     OnItemsChanged(new ItemsChangedEventArgs(index));
     return index;
 }
예제 #3
0
 public ContainerSubListViewItem Add(string str)
 {
     ContainerSubListViewItem slvi = new ContainerSubListViewItem(str);
     lock(List.SyncRoot)
         OnItemsChanged(new ItemsChangedEventArgs(List.Add(slvi)));
     return slvi;
 }
예제 #4
0
        public object Clone()
        {
            ContainerSubListViewItem slvi = new ContainerSubListViewItem();
            slvi.ItemControl = null;
            slvi.Text = text;

            slvi.ColorIndex = ColorIndex;
            slvi.ColorValue = ColorValue;

            return slvi;
        }