C# Class SIL.FieldWorks.TE.BtDraftSplitWrapper

This class wraps together a style bar, a vernacular draft view, and a back-translation draft view, not to mention a footnote view or two (plus a kangaroo).
Inheritance: SIL.FieldWorks.TE.ViewWrapper
ファイルを表示 Open project: sillsdev/FieldWorks Class Usage Examples

Private Properties

Property Type Description
BtDraftSplitWrapper System
DataGridView_ControlAdded void
OnLoadSettings void
OnSaveSettings void
SetFocus void
ShowOrHideFootnoteView void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

OnControlAdded ( System.Windows.Forms.ControlEventArgs e ) : void

Connect each BT view to its corresponding main view.

OnRowHeightChanged ( object sender, System.Windows.Forms.DataGridViewRowEventArgs e ) : void

Called when the row height changed.

Private Methods

Method Description
BtDraftSplitWrapper ( string name, Control parent, SIL.FieldWorks.FDO.FdoCache cache, IVwStylesheet styleSheet, RegistryKey settingsRegKey, SIL.FieldWorks.TE.TeScrDraftViewProxy draftView, SIL.FieldWorks.TE.DraftStylebarProxy stylebar, SIL.FieldWorks.TE.TeScrDraftViewProxy btDraftView, SIL.FieldWorks.TE.TeFootnoteDraftViewProxy footnoteDraftView, SIL.FieldWorks.TE.DraftStylebarProxy footnoteStylebar, SIL.FieldWorks.TE.TeFootnoteDraftViewProxy footnoteBtDraftView ) : System
DataGridView_ControlAdded ( object sender, System.Windows.Forms.ControlEventArgs e ) : void

Handles the ControlAdded event of the Control control.

OnLoadSettings ( RegistryKey key ) : void

Load size of columns and rows

OnSaveSettings ( RegistryKey key ) : void
SetFocus ( bool fFocusOnBtSide ) : void

Sets the focus to the front or back translation side.

Note: this method gets called only after showing or hiding the footnote pane. This means it is save to set the focus to the footnote row if the footnote pane is showing!

ShowOrHideFootnoteView ( IStFootnote footnote, bool fPutInsertionPtAtEnd ) : void

Show the footnote view.

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

OnControlAdded() protected method

Connect each BT view to its corresponding main view.
protected OnControlAdded ( System.Windows.Forms.ControlEventArgs e ) : void
e System.Windows.Forms.ControlEventArgs A that /// contains the event data.
return void

OnRowHeightChanged() protected method

Called when the row height changed.
protected OnRowHeightChanged ( object sender, System.Windows.Forms.DataGridViewRowEventArgs e ) : void
sender object The sender.
e System.Windows.Forms.DataGridViewRowEventArgs The /// instance containing the event data.
return void