using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Ease.CoreV35.Utility; namespace Payroll.Controls.CustomControls { public partial class frmCustomBasicControl : Form { public frmCustomBasicControl() { InitializeComponent(); } private void btnClose_Click(object sender, EventArgs e) { this.Close(); } private void lvwItems_ColumnClick(object sender, ColumnClickEventArgs e) { this.Cursor = Cursors.WaitCursor; SortOrder order = SortOrder.Ascending; if (order == lvwItems.Sorting) order = SortOrder.Descending; else order = SortOrder.Ascending; lvwItems.ListViewItemSorter = new Global.ItemSorter(e.Column, order); lvwItems.Sorting = order; this.Cursor = Cursors.Default; } } }