public TpListViewItem AddRow() { var viewItem = new TpListViewItem(); Controls.Add(viewItem); UpdatePositions(); return(viewItem); }
public TpListViewItem Add(string[] data) { var viewItem = new TpListViewItem(); foreach (string text in data) { viewItem.Add(text); } Controls.Add(viewItem); UpdateControl(); return(viewItem); }
private int CompareViewItem(TpListViewItem item1, TpListViewItem item2) { string text1; string text2; if (currentSortingOrder == TPListSortingOrder.Asc) { text1 = item1.GetTextForColumn(currentSortingColumnt); text2 = item2.GetTextForColumn(currentSortingColumnt); } else { text2 = item1.GetTextForColumn(currentSortingColumnt); text1 = item2.GetTextForColumn(currentSortingColumnt); } return(string.Compare(text1, text2)); }
public TpListViewItem AddRow() { var viewItem = new TpListViewItem(); Controls.Add(viewItem); UpdatePositions(); return viewItem; }
public TpListViewItem Add(string[] data) { var viewItem = new TpListViewItem(); foreach (string text in data) viewItem.Add(text); Controls.Add(viewItem); UpdateControl(); return viewItem; }
private int CompareViewItem(TpListViewItem item1, TpListViewItem item2) { string text1; string text2; if (currentSortingOrder == TPListSortingOrder.Asc) { text1 = item1.GetTextForColumn(currentSortingColumnt); text2 = item2.GetTextForColumn(currentSortingColumnt); } else { text2 = item1.GetTextForColumn(currentSortingColumnt); text1 = item2.GetTextForColumn(currentSortingColumnt); } return string.Compare(text1, text2); }