Inheritance: System.EventArgs
Esempio n. 1
0
        private void header_ClickToSort(object sender, HeaderClickEventArgs e)
        {
            currentSortingOrder   = e.sortingOrder;
            currentSortingColumnt = e.position;

            var tmpList = new List <TpListViewItem>();

            for (int i = Controls.Count - 1; i > 0; i--)
            {
                if (Controls[i] is TpListViewItem)
                {
                    tmpList.Add((TpListViewItem)Controls[i]);
                    Controls.RemoveAt(i);
                }
            }

            tmpList.Sort(CompareViewItem);

            foreach (TpListViewItem item in tmpList)
            {
                Controls.Add(item);
            }
        }
Esempio n. 2
0
		private void header_ClickToSort(object sender, HeaderClickEventArgs e)
		{
			currentSortingOrder = e.sortingOrder;
			currentSortingColumnt = e.position;

			var tmpList = new List<TpListViewItem>();

			for (int i = Controls.Count - 1; i > 0; i--)
			{
				if (Controls[i] is TpListViewItem)
				{
					tmpList.Add((TpListViewItem) Controls[i]);
					Controls.RemoveAt(i);
				}
			}

			tmpList.Sort(CompareViewItem);

			foreach (TpListViewItem item in tmpList)
				Controls.Add(item);
		}