C# Class SIL.FieldWorks.FwCoreDlgs.DummyWritingSystemPropertiesDialog

Inheritance: WritingSystemPropertiesDialog
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

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

DummyWritingSystemPropertiesDialog() public méthode

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

LoadAvailableConverters() protected méthode

Remove a dependency on Encoding Converters
protected LoadAvailableConverters ( ) : void
Résultat void

ShowDialog() public méthode

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

ShowMsgBoxCantCreateDuplicateWs() protected méthode

protected ShowMsgBoxCantCreateDuplicateWs ( IWritingSystem tempWs, IWritingSystem origWs ) : void
tempWs IWritingSystem
origWs IWritingSystem
Résultat void

ShowMsgCantChangeUserWs() protected méthode

protected ShowMsgCantChangeUserWs ( IWritingSystem tempWs, IWritingSystem origWs ) : void
tempWs IWritingSystem
origWs IWritingSystem
Résultat void

SwitchTab() public méthode

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
Résultat void