CEL_Payroll/Payroll.Controls/CustomControls/frmSkillLevelList.cs
2024-09-17 14:30:13 +06:00

40 lines
990 B
C#

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