C# 클래스 SIL.FieldWorks.TE.TeEditorialChecks.CheckGridListSorter

파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

공개 메소드들

메소드 설명
AddComparer ( string propName, IComparer comparer ) : void

Adds a comparer for property propName.

Adding a comparer for a property allows that property to be sorted by the specified comparer (e.g. when the user clicks on the corresponding column header in a datagrid view.

CheckGridListSorter ( List list ) : System

Constructs a new CheckGridListSorter for the specified list of ICheckGridRowObjects objects.

ReadSortInfoFromReg ( RegistryKey key ) : bool

Reads the sort order information from the registry.

RowComparer ( object x, object y ) : int

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

SetFirstSortPropName ( string propName, bool toggleDirection ) : void

Sort ( ) : void

Sorts the list using the current sort order.

Sort ( string sortPropName, bool toggleDirection ) : void

Sorts the list, making the specified property name the primary sort field and toggles the sort direction if that field is already in the sort order. If not, then the direction is ascending.

WriteSortInfoToReg ( RegistryKey key ) : void

Writes the sort order information to the registry.

메소드 상세

AddComparer() 공개 메소드

Adds a comparer for property propName.
Adding a comparer for a property allows that property to be sorted by the specified comparer (e.g. when the user clicks on the corresponding column header in a datagrid view.
public AddComparer ( string propName, IComparer comparer ) : void
propName string Name of the property.
comparer IComparer The comparer object
리턴 void

CheckGridListSorter() 공개 메소드

Constructs a new CheckGridListSorter for the specified list of ICheckGridRowObjects objects.
public CheckGridListSorter ( List list ) : System
list List
리턴 System

ReadSortInfoFromReg() 공개 메소드

Reads the sort order information from the registry.
public ReadSortInfoFromReg ( RegistryKey key ) : bool
key Microsoft.Win32.RegistryKey
리턴 bool

RowComparer() 공개 메소드

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Neither nor /// implements the /// interface.-or- and are of different /// types and neither one can handle comparisons with the other.
public RowComparer ( object x, object y ) : int
x object The first object to compare.
y object The second object to compare.
리턴 int

SetFirstSortPropName() 공개 메소드

public SetFirstSortPropName ( string propName, bool toggleDirection ) : void
propName string
toggleDirection bool
리턴 void

Sort() 공개 메소드

Sorts the list using the current sort order.
public Sort ( ) : void
리턴 void

Sort() 공개 메소드

Sorts the list, making the specified property name the primary sort field and toggles the sort direction if that field is already in the sort order. If not, then the direction is ascending.
public Sort ( string sortPropName, bool toggleDirection ) : void
sortPropName string
toggleDirection bool
리턴 void

WriteSortInfoToReg() 공개 메소드

Writes the sort order information to the registry.
public WriteSortInfoToReg ( RegistryKey key ) : void
key Microsoft.Win32.RegistryKey
리턴 void