상속: System.Windows.Forms.Control
예제 #1
0
        public TpListViewItem AddRow()
        {
            var viewItem = new TpListViewItem();

            Controls.Add(viewItem);
            UpdatePositions();
            return(viewItem);
        }
예제 #2
0
        public TpListViewItem Add(string[] data)
        {
            var viewItem = new TpListViewItem();

            foreach (string text in data)
            {
                viewItem.Add(text);
            }
            Controls.Add(viewItem);
            UpdateControl();
            return(viewItem);
        }
예제 #3
0
        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));
        }
예제 #4
0
		public TpListViewItem AddRow()
		{
			var viewItem = new TpListViewItem();
			Controls.Add(viewItem);
			UpdatePositions();
			return viewItem;
		}
예제 #5
0
		public TpListViewItem Add(string[] data)
		{
			var viewItem = new TpListViewItem();
			foreach (string text in data)
				viewItem.Add(text);
			Controls.Add(viewItem);
			UpdateControl();
			return viewItem;
		}
예제 #6
0
		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);
		}