Exemplo n.º 1
0
 /// <summary>
 /// 構築
 /// </summary>
 public MilkyLogListView()
 {
     if (!FormUtils.IsDesinMode)
     {
         //実行時、カラム生成
         this.Columns.Clear();
         MilkyLogListItem.MilkyLogHeaders().ForEach(h => this.Columns.Add(h));
     }
     this.SmallImageList       = this.imageList;
     this.LargeImageList       = this.imageList;
     this.DoubleBuffered       = true;
     this.HideSelection        = false;
     this.FullRowSelect        = true;
     this.GridLines            = true;
     this.VirtualMode          = true;
     this.MultiSelect          = false;
     this.View                 = View.Details;
     this.RetrieveVirtualItem += MilkyLogListView_RetrieveVirtualItem;
     this.PropertyChanged     += MilkyLogListView_PropertyChanged;
     this.DrawColumnHeader    += MilkyLogListView_DrawColumnHeader;
     this.DrawItem            += MilkyLogListView_DrawItem;
     this.DrawSubItem         += MilkyLogListView_DrawSubItem;
     this.ItemMouseHover      += MilkyLogListView_ItemMouseHover;
     this.OwnerDraw            = true;
 }
Exemplo n.º 2
0
 /// <summary>
 /// ログアイテムを削除する
 /// </summary>
 public void Remove(MilkyLogListItem item)
 {
     this.allItems.Remove(item);
     UpdateView();
 }
Exemplo n.º 3
0
 /// <summary>
 /// ログアイテムを追加する
 /// </summary>
 public void AddItem(MilkyLogListItem item)
 {
     this.allItems.Add(item);
     UpdateView();
 }