C# Класс SIL.FieldWorks.TE.KeyTermRenderingsControl

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetColumnFromPropertyName DataGridViewColumn
GetKeyTermRef SIL.FieldWorks.TE.KeyTermRef
GetKeyTermRef int
KeyTermRenderingsControl System
OnKeyTermRefPropertyChanged void
OnReferenceChanged void
PopulateKeyTermRefs void
m_dataGridView_ColumnHeaderMouseClick void
m_dataGridView_RowEnter void

Открытые методы

Метод Описание
KeyTermRenderingsControl ( FdoCache cache, FwMainWnd mainWnd ) : System

Initializes a new instance of the T:KeyTermRenderingsControl class.

LoadRenderingsForKeyTerm ( IChkTerm chkTerm, List filteredBookIds ) : void

Build a list of the KeyTermRef objects that will be displayed in the key terms rendering grid.

SelectKeyTermRef ( Guid guid ) : void

Selects the key term reference in the grid to the one whose guid is the same as that specified. If the specified guid cannot be found, then the first key term reference in the grid is selected.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

GetPreSortRow ( ) : object

Return the guid of the current row.

OnLoadSettings ( Microsoft key ) : void

OnSaveSettings ( Microsoft key ) : void

RestorePreSortRow ( object restoreRow ) : void

Use the supplied information to set the current key terms ref. row.

Приватные методы

Метод Описание
GetColumnFromPropertyName ( string propertyName ) : DataGridViewColumn

Gets the column that displays the given property.

GetKeyTermRef ( int rowIndex ) : SIL.FieldWorks.TE.KeyTermRef

Gets the key term reference for the specified row.

GetKeyTermRef ( Guid guid ) : int

Gets the index of the key term reference for the specified guid. If a key term reference for the guid cannot be found, then -1 is returned.

KeyTermRenderingsControl ( ) : System

Initializes a new instance of the T:KeyTermRenderingsControl class.

OnKeyTermRefPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Called when the a property of a KeyTermRef changed.

OnReferenceChanged ( int iRow ) : void

Raises the ReferenceChanged event.

PopulateKeyTermRefs ( IChkTerm keyTerm, List filteredBookIds ) : void

Recursively populate a list with key term references

m_dataGridView_ColumnHeaderMouseClick ( object sender, DataGridViewCellMouseEventArgs e ) : void
m_dataGridView_RowEnter ( object sender, DataGridViewCellEventArgs e ) : void

Handles the RowEnter event of the m_dataGridView control.

Описание методов

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

GetPreSortRow() защищенный Метод

Return the guid of the current row.
protected GetPreSortRow ( ) : object
Результат object

KeyTermRenderingsControl() публичный Метод

Initializes a new instance of the T:KeyTermRenderingsControl class.
public KeyTermRenderingsControl ( FdoCache cache, FwMainWnd mainWnd ) : System
cache FdoCache The cache.
mainWnd FwMainWnd the FwMainWnd that owns this control.
Результат System

LoadRenderingsForKeyTerm() публичный Метод

Build a list of the KeyTermRef objects that will be displayed in the key terms rendering grid.
public LoadRenderingsForKeyTerm ( IChkTerm chkTerm, List filteredBookIds ) : void
chkTerm IChkTerm The term node to get references for. This could be the /// category node, in which case we just clear the list.
filteredBookIds List list of book ids that are in the current filter. /// If null, then filtering is not on and all references should be included
Результат void

OnLoadSettings() защищенный Метод

protected OnLoadSettings ( Microsoft key ) : void
key Microsoft
Результат void

OnSaveSettings() защищенный Метод

protected OnSaveSettings ( Microsoft key ) : void
key Microsoft
Результат void

RestorePreSortRow() защищенный Метод

Use the supplied information to set the current key terms ref. row.
protected RestorePreSortRow ( object restoreRow ) : void
restoreRow object
Результат void

SelectKeyTermRef() публичный Метод

Selects the key term reference in the grid to the one whose guid is the same as that specified. If the specified guid cannot be found, then the first key term reference in the grid is selected.
public SelectKeyTermRef ( Guid guid ) : void
guid Guid
Результат void