コード例 #1
0
ファイル: CozySampleListView.cs プロジェクト: xxy1991/cozy
 public void RemoveItem(CozyControl control)
 {
     this.RemoveChild(control);
     Items.Remove(control);
     RefreshItems();
     if(ItemRemoveEventHandler != null)
     {
         ItemRemoveEventHandler(this, new ItemRemoveEventArgs(control));
     }
 }
コード例 #2
0
ファイル: CozySampleListView.cs プロジェクト: xxy1991/cozy
 public void AddItem(CozyControl control)
 {
     this.AddChild(control);
     Items.Add(control);
     RefreshItems();
     if (ItemAddEventHandler != null)
     {
         ItemAddEventHandler(this, new ItemAddEventArgs(control));
     }
 }