Property | Type | Description | |
---|---|---|---|
btnFind | |||
cboLookup | SIL.FieldWorks.Common.Controls.FwOverrideComboBox | ||
lblOtherNamesList | |||
lvFindResult | |||
m_lastSearchText | string | ||
m_messageFilter | TrapEnterFilter | ||
m_testing | bool | ||
txtFindPattern |
Method | Description | |
---|---|---|
CheckDisposed ( ) : void |
Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
|
|
LanguageSetup ( ) : System |
Initializes a new instance of the LanguageSetup class.
|
|
PerformInitialSearch ( string target ) : void |
This is called just before ShowDialog. It sets up the target string as a language name and performs an initial search for this language as the dialog comes up.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Clean up any resources being used.
|
|
DoInitialSearch ( ) : void |
Do the initial search requested if m_initialTarget has been set.
|
|
LoadList ( string searchText ) : void |
|
|
LoadList ( string searchText, bool fShowErrorMessage ) : void |
Fill the controls based on the current search, and (if requested) display an error message if not found.
|
|
LoadOtherNames ( ) : void |
|
|
OnHandleDestroyed ( |
|
|
OnLoad ( |
Do the initial search when we bring up the control
|
|
SelectClosestMatch ( ) : void |
Select the first exact match in the language column, or if none found, select the first item.
|
|
SettingsForNoLanguage ( ) : void |
Fix the settings for either a search failure or clicking on the "None of the above" item.
|
|
btnFind_Click ( object sender, System e ) : void |
When we get here, it means there was a long enough pause while typing in the search for text box that a search should be kicked off.
|
|
lvFindResult_SelectedIndexChanged ( object sender, |
|
Method | Description | |
---|---|---|
CompareCountryFirst ( Ethnologue x, Ethnologue y ) : int |
Implements sorting by country name, then by language name.
|
|
CompareEthnoCodeFirst ( Ethnologue x, Ethnologue y ) : int |
Implements sorting by ethnologue code, then by language name, then by country name.
|
|
GetSearchResultSet ( string searchText ) : List |
Get the requested data from the Ethnologue.
|
|
InitializeComponent ( ) : void |
Required method for Designer support - do not modify the contents of this method with the code editor.
|
|
StartFind ( ) : void |
|
|
cboLookup_Enter ( object sender, System e ) : void |
We want to have the focus initially in txtFindPattern. We do it here and then remove the event handler. We can't change the Tab order because then Shift-Tab goes to the Help button instead of "Search for" field (TE-753)
|
|
cboLookup_SelectedIndexChanged ( object sender, System e ) : void |
|
|
lblOtherNamesList_Paint ( object sender, System e ) : void |
|
|
lvFindResult_ColumnClick ( object sender, System.Windows.Forms.ColumnClickEventArgs e ) : void |
|
|
lvFindResult_Enter ( object sender, System e ) : void |
When we enter the list view we have to set the focused item to match the selected item.
|
|
txtCurrentLangName_TextChanged ( object sender, System e ) : void |
|
|
txtFindPattern_Enter ( object sender, System e ) : void |
|
|
txtFindPattern_KeyPress ( object sender, System e ) : void |
|
|
txtFindPattern_Leave ( object sender, System e ) : void |
|
|
txtFindPattern_TextChanged ( object sender, System e ) : void |
Restarts the timer everytime the text box text changes.
|
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
return | void |
protected LoadList ( string searchText ) : void | ||
searchText | string | |
return | void |
protected LoadList ( string searchText, bool fShowErrorMessage ) : void | ||
searchText | string | |
fShowErrorMessage | bool | |
return | void |
protected OnHandleDestroyed ( |
||
e | ||
return | void |
public PerformInitialSearch ( string target ) : void | ||
target | string | The target. |
return | void |
protected btnFind_Click ( object sender, System e ) : void | ||
sender | object | |
e | System | |
return | void |
protected lvFindResult_SelectedIndexChanged ( object sender, |
||
sender | object | |
e | ||
return | void |
protected Button,System.Windows.Forms btnFind | ||
return |
protected FwOverrideComboBox,SIL.FieldWorks.Common.Controls cboLookup | ||
return | SIL.FieldWorks.Common.Controls.FwOverrideComboBox |
protected Label,System.Windows.Forms lblOtherNamesList | ||
return |
protected ListView,System.Windows.Forms lvFindResult | ||
return |
protected TrapEnterFilter m_messageFilter | ||
return | TrapEnterFilter |