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.Report { public partial class fEmployeeReport : Form { public fEmployeeReport() { InitializeComponent(); } private void btnClose_Click(object sender, EventArgs e) { this.Close(); } private void btnSelect_Click(object sender, EventArgs e) { bool bSelected = false; if (btnSelect.Text.Equals("&Select All")) { bSelected = true; btnSelect.Text = "&Unselect All"; lblSelected.Text = lsvEmployee.Items.Count.ToString(); } else { btnSelect.Text = "&Select All"; } foreach (ListViewItem item in lsvEmployee.Items) { item.Checked = bSelected; } if (bSelected == false) lblSelected.Text = "0"; } private void lsvEmployee_ColumnClick(object sender, ColumnClickEventArgs e) { this.Cursor = Cursors.WaitCursor; SortOrder order = SortOrder.Ascending; if (order == lsvEmployee.Sorting) order = SortOrder.Descending; else order = SortOrder.Ascending; lsvEmployee.ListViewItemSorter = new Global.ItemSorter(e.Column, order); lsvEmployee.Sorting = order; this.Cursor = Cursors.Default; } } }