You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
983 B
32 lines
983 B
using System; |
|
using System.Windows.Forms; |
|
|
|
namespace Kingo.Mobile.Shape2KOTool.SymbolSetting |
|
{ |
|
// Token: 0x02000064 RID: 100 |
|
public class ListViewHelper |
|
{ |
|
// Token: 0x060003DA RID: 986 RVA: 0x00015808 File Offset: 0x00013A08 |
|
public static void ListView_ColumnClick(object sender, ColumnClickEventArgs e) |
|
{ |
|
ListView listView = sender as ListView; |
|
if (e.Column == (listView.ListViewItemSorter as ListViewColumnSorter).SortColumn) |
|
{ |
|
if ((listView.ListViewItemSorter as ListViewColumnSorter).Order == SortOrder.Ascending) |
|
{ |
|
(listView.ListViewItemSorter as ListViewColumnSorter).Order = SortOrder.Descending; |
|
} |
|
else |
|
{ |
|
(listView.ListViewItemSorter as ListViewColumnSorter).Order = SortOrder.Ascending; |
|
} |
|
} |
|
else |
|
{ |
|
(listView.ListViewItemSorter as ListViewColumnSorter).SortColumn = e.Column; |
|
(listView.ListViewItemSorter as ListViewColumnSorter).Order = SortOrder.Ascending; |
|
} |
|
((ListView)sender).Sort(); |
|
} |
|
} |
|
}
|
|
|