C# Class SIL.FieldWorks.FwCoreDlgs.DummyWritingSystemPropertiesDialog

Inheritance: WritingSystemPropertiesDialog
Mostrar archivo Open project: sillsdev/FieldWorks Class Usage Examples

Private Properties

Property Type Description
DoExpectedMsgBoxResult DialogResult
PopulateAddWsContextMenu System.Windows.Forms.ContextMenuStrip
PressBtnAdd bool
PressBtnCopy bool
PressCancel void
PressDeleteButton bool
PressOk void
SelectEthnologueCodeDlg void
SetCustomRegionName void
SetScriptName void
SetVariantName void
SwitchTab void
ValidateConvertersTab void
ValidateFontsTab void
ValidateGeneralInfo void
ValidateGeneralTab void
ValidateKeyboardTab void
ValidateSortingTab void
VerifyAddWsContextMenuItems void
VerifyListBox void
VerifyLoadedForListBoxSelection void
VerifyLoadedForListBoxSelection void
VerifyRelatedWritingSystem void
VerifyTab void
VerifyWritingSystemsAreEqual void
VerifyWsId void

Public Methods

Method Description
DummyWritingSystemPropertiesDialog ( SIL.FieldWorks.FDO.FdoCache cache ) : System

Initializes a new instance of the DummyWritingSystemPropertiesDialog class.

ShowDialog ( IWritingSystem ws ) : int

sets up the dialog without actually showing it.

SwitchTab ( int index ) : void

For some reason the tests are not triggering tabControl_Deselecting and tabControl_SelectedIndexChanged, so call them explicitly here.

Protected Methods

Method Description
CallShowDialog ( SIL.FieldWorks.FwCoreDlgs.LanguageSelectionDlg dlg ) : DialogResult

simulate choosing settings with those specified in SelectEthnologueCodeDlg().

LoadAvailableConverters ( ) : void

Remove a dependency on Encoding Converters

ShowMsgBoxCantCreateDuplicateWs ( IWritingSystem tempWs, IWritingSystem origWs ) : void

ShowMsgCantChangeUserWs ( IWritingSystem tempWs, IWritingSystem origWs ) : void

Private Methods

Method Description
DoExpectedMsgBoxResult ( ShowMsgBoxStatus encountered, string origWsId ) : DialogResult

Check the expected state of MsgBox being encountered.

PopulateAddWsContextMenu ( ) : ContextMenuStrip
PressBtnAdd ( string item ) : bool
PressBtnCopy ( ) : bool
PressCancel ( ) : void

Presses the Cancel button.

PressDeleteButton ( ) : bool

PressOk ( ) : void

Presses the OK button.

SelectEthnologueCodeDlg ( string languageName, string ethnologueCode, string country, DialogResult ethnologueDlgResultToEnforce, ShowMsgBoxStatus expectedMsgBoxes, string expectedOrigIcuLocales, DialogResult resultsToEnforce ) : void
SetCustomRegionName ( string newRegionName ) : void

Set a new Custom (private use) Region subtag

Unless you modify this method it will fail given an input parameter length of less than 2.

SetScriptName ( string newScriptName ) : void
SetVariantName ( string newVariantName ) : void
SwitchTab ( int index, ShowMsgBoxStatus expectedStatus, DialogResult doResult ) : void
ValidateConvertersTab ( ) : void
ValidateFontsTab ( ) : void
ValidateGeneralInfo ( ) : void

ValidateGeneralTab ( ) : void
ValidateKeyboardTab ( ) : void
ValidateSortingTab ( ) : void
VerifyAddWsContextMenuItems ( string expectedItems ) : void
VerifyListBox ( string wsnames ) : void

Verifies the writing system order.

VerifyLoadedForListBoxSelection ( string expectedItemName ) : void
VerifyLoadedForListBoxSelection ( string expectedItemName, int selectedIndex ) : void
VerifyRelatedWritingSystem ( string langAbbr ) : void

VerifyTab ( int index ) : void
VerifyWritingSystemsAreEqual ( int indexA, int indexB ) : void
VerifyWsId ( string wsId ) : void

Method Details

CallShowDialog() protected method

simulate choosing settings with those specified in SelectEthnologueCodeDlg().
protected CallShowDialog ( SIL.FieldWorks.FwCoreDlgs.LanguageSelectionDlg dlg ) : DialogResult
dlg SIL.FieldWorks.FwCoreDlgs.LanguageSelectionDlg
return DialogResult

DummyWritingSystemPropertiesDialog() public method

Initializes a new instance of the DummyWritingSystemPropertiesDialog class.
public DummyWritingSystemPropertiesDialog ( SIL.FieldWorks.FDO.FdoCache cache ) : System
cache SIL.FieldWorks.FDO.FdoCache The cache.
return System

LoadAvailableConverters() protected method

Remove a dependency on Encoding Converters
protected LoadAvailableConverters ( ) : void
return void

ShowDialog() public method

sets up the dialog without actually showing it.
public ShowDialog ( IWritingSystem ws ) : int
ws IWritingSystem The writing system which properties will be displayed
return int

ShowMsgBoxCantCreateDuplicateWs() protected method

protected ShowMsgBoxCantCreateDuplicateWs ( IWritingSystem tempWs, IWritingSystem origWs ) : void
tempWs IWritingSystem
origWs IWritingSystem
return void

ShowMsgCantChangeUserWs() protected method

protected ShowMsgCantChangeUserWs ( IWritingSystem tempWs, IWritingSystem origWs ) : void
tempWs IWritingSystem
origWs IWritingSystem
return void

SwitchTab() public method

For some reason the tests are not triggering tabControl_Deselecting and tabControl_SelectedIndexChanged, so call them explicitly here.
public SwitchTab ( int index ) : void
index int
return void