C# Class SIL.FieldWorks.FwCoreDlgs.ValidCharactersDlg.ValidCharGridsManager

Inheritance: IDisposable
Show file Open project: sillsdev/FieldWorks

Private Properties

Property Type Description
AddCharacters void
AreSelectedCharsOther bool
DrawWordFormingGridCellBackground void
HandleCellFormatting void
HandleCharGridCellMouseClick void
HandleCharGridSelectionChanged void
HandleGridCellPainting void
HandleGridEnter void
HandleRemoveClick void
HandleTreatAsClick void
Init void
LoadException void
RefreshCharacterGrids void
Reset void
Save void

Public Methods

Method Description
Dispose ( ) : void

Releases the unmanaged resources used by the T:System.Windows.Forms.Control and its child controls and optionally releases the managed resources.

MoveSelectedChars ( ) : CharacterGrid

Moves the selected characters from the current grid to the opposing grid.

ValidCharGridsManager ( ) : System

Constructs a new instance of the ValidCharGridsManager class.

Protected Methods

Method Description
AddCharacter ( string chr ) : void

Adds the specified character to the list of valid characters.

AddCharacter ( string chr, ValidCharacterType type, bool makeReceivingGridCurrent ) : void

Adds the specified character to the list of valid characters.

Dispose ( bool fDisposing ) : void

Private Methods

Method Description
AddCharacters ( List chrs ) : void

Adds the list of characters to the list of valid characters.

AreSelectedCharsOther ( SIL.FieldWorks.Common.Controls.CharacterGrid grid ) : bool

Determines whether or not all the selected characters in the specified grid fall into the category of punctuation or symbol characters.

DrawWordFormingGridCellBackground ( System.Windows.Forms.DataGridViewCellPaintingEventArgs e ) : void

Draws the word forming grid cell's background when it's character represents a word-forming override character.

HandleCellFormatting ( object sender, System.Windows.Forms.DataGridViewCellFormattingEventArgs e ) : void

Handles the cell formatting.

HandleCharGridCellMouseClick ( object sender, System.Windows.Forms.DataGridViewCellMouseEventArgs e ) : void

Display a context menu when the user clicks on one of the valid character grids.

HandleCharGridSelectionChanged ( object sender, EventArgs e ) : void

Handles the selection changed event for the word forming and other grids.

HandleGridCellPainting ( object sender, System.Windows.Forms.DataGridViewCellPaintingEventArgs e ) : void

Paint the background of word-forming override characters differently from all the other characters.

HandleGridEnter ( object sender, EventArgs e ) : void

Handles the grid enter.

HandleRemoveClick ( object sender, EventArgs e ) : void

Handles the Click event of the remove context menu or Remove button.

HandleTreatAsClick ( object sender, EventArgs e ) : void
Init ( SIL.FieldWorks.Common.Controls.CharacterGrid gridWf, SIL.FieldWorks.Common.Controls.CharacterGrid gridOther, SIL.FieldWorks.Common.Controls.CharacterGrid gridNum, IWritingSystem ws, IApp app ) : void

Initializes the valid characters explorer bar with three valid character grids.

LoadException ( ArgumentException e ) : void

Reports a load exception in the scrDataSource.

RefreshCharacterGrids ( ValidCharacterType type ) : void

Adds the specified valid character to one of the valid character grids.

Reset ( ) : void

Clears all the valid characters.

Save ( ) : void

Updates the language definition's PUA chars and valid characters.

Method Details

AddCharacter() protected method

Adds the specified character to the list of valid characters.
protected AddCharacter ( string chr ) : void
chr string
return void

AddCharacter() protected method

Adds the specified character to the list of valid characters.
protected AddCharacter ( string chr, ValidCharacterType type, bool makeReceivingGridCurrent ) : void
chr string
type ValidCharacterType
makeReceivingGridCurrent bool
return void

Dispose() public method

Releases the unmanaged resources used by the T:System.Windows.Forms.Control and its child controls and optionally releases the managed resources.
public Dispose ( ) : void
return void

Dispose() protected method

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

MoveSelectedChars() public method

Moves the selected characters from the current grid to the opposing grid.
public MoveSelectedChars ( ) : CharacterGrid
return CharacterGrid

ValidCharGridsManager() public method

Constructs a new instance of the ValidCharGridsManager class.
public ValidCharGridsManager ( ) : System
return System