Inheritance: System.Windows.Forms.Control
Esempio n. 1
0
        public TpListViewItem AddRow()
        {
            var viewItem = new TpListViewItem();

            Controls.Add(viewItem);
            UpdatePositions();
            return(viewItem);
        }
Esempio n. 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);
        }
Esempio n. 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));
        }
Esempio n. 4
0
		public TpListViewItem AddRow()
		{
			var viewItem = new TpListViewItem();
			Controls.Add(viewItem);
			UpdatePositions();
			return viewItem;
		}
Esempio n. 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;
		}
Esempio n. 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);
		}