C# Class YALV.Common.FilteredGridManagerBase

Inheritance: DisposableObject
显示文件 Open project: LukePet/YALV

Public Properties

Property Type Description
OnAfterCheckFilter Func
OnBeforeCheckFilter bool>.Func

Protected Properties

Property Type Description
_cvs System.Windows.Data.CollectionViewSource
_dg System.Windows.Controls.DataGrid
_filterPropertyList IList
_keyUpEvent KeyEventHandler
_txtCache System.Collections.Hashtable
_txtSearchPanel System.Windows.Controls.Panel

Public Methods

Method Description
AssignSource ( Binding sourceBind ) : void
ClearCache ( ) : void
FilteredGridManagerBase ( System.Windows.Controls.DataGrid dg, System.Windows.Controls.Panel txtSearchPanel, KeyEventHandler keyUpEvent ) : System
GetCollectionView ( ) : ICollectionView
ResetSearchTextBox ( ) : void

Protected Methods

Method Description
OnDispose ( ) : void
getItemValue ( object item, string prop ) : object
getTextBoxName ( string prop ) : string
itemCheckFilter ( object item ) : bool

Method Details

AssignSource() public method

public AssignSource ( Binding sourceBind ) : void
sourceBind System.Windows.Data.Binding
return void

ClearCache() public method

public ClearCache ( ) : void
return void

FilteredGridManagerBase() public method

public FilteredGridManagerBase ( System.Windows.Controls.DataGrid dg, System.Windows.Controls.Panel txtSearchPanel, KeyEventHandler keyUpEvent ) : System
dg System.Windows.Controls.DataGrid
txtSearchPanel System.Windows.Controls.Panel
keyUpEvent KeyEventHandler
return System

GetCollectionView() public method

public GetCollectionView ( ) : ICollectionView
return ICollectionView

OnDispose() protected method

protected OnDispose ( ) : void
return void

ResetSearchTextBox() public method

public ResetSearchTextBox ( ) : void
return void

getItemValue() protected method

protected getItemValue ( object item, string prop ) : object
item object
prop string
return object

getTextBoxName() protected method

protected getTextBoxName ( string prop ) : string
prop string
return string

itemCheckFilter() protected method

protected itemCheckFilter ( object item ) : bool
item object
return bool

Property Details

OnAfterCheckFilter public_oe property

public Func OnAfterCheckFilter
return Func

OnBeforeCheckFilter public_oe property

public Func OnBeforeCheckFilter
return bool>.Func

_cvs protected_oe property

protected CollectionViewSource,System.Windows.Data _cvs
return System.Windows.Data.CollectionViewSource

_dg protected_oe property

protected DataGrid,System.Windows.Controls _dg
return System.Windows.Controls.DataGrid

_filterPropertyList protected_oe property

protected IList _filterPropertyList
return IList

_keyUpEvent protected_oe property

protected KeyEventHandler _keyUpEvent
return KeyEventHandler

_txtCache protected_oe property

protected Hashtable,System.Collections _txtCache
return System.Collections.Hashtable

_txtSearchPanel protected_oe property

protected Panel,System.Windows.Controls _txtSearchPanel
return System.Windows.Controls.Panel