C# 클래스 SIL.FieldWorks.Common.Controls.LanguageSetup

Summary description for LanguageSetup.
상속: System.Windows.Forms.UserControl, IFWDisposable
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
btnFind System.Windows.Forms.Button
cboLookup SIL.FieldWorks.Common.Controls.FwOverrideComboBox
lblOtherNamesList System.Windows.Forms.Label
lvFindResult System.Windows.Forms.ListView
m_lastSearchText string
m_messageFilter TrapEnterFilter
m_testing bool
txtFindPattern System.Windows.Forms.TextBox

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
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 ( EventArgs e ) : void

OnLoad ( EventArgs e ) : void

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, EventArgs e ) : void

비공개 메소드들

메소드 설명
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.

메소드 상세

CheckDisposed() 공개 메소드

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
public CheckDisposed ( ) : void
리턴 void

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged /// resources; false to release only unmanaged resources. ///
리턴 void

DoInitialSearch() 보호된 메소드

Do the initial search requested if m_initialTarget has been set.
protected DoInitialSearch ( ) : void
리턴 void

LanguageSetup() 공개 메소드

Initializes a new instance of the LanguageSetup class.
public LanguageSetup ( ) : System
리턴 System

LoadList() 보호된 메소드

protected LoadList ( string searchText ) : void
searchText string
리턴 void

LoadList() 보호된 메소드

Fill the controls based on the current search, and (if requested) display an error message if not found.
protected LoadList ( string searchText, bool fShowErrorMessage ) : void
searchText string
fShowErrorMessage bool
리턴 void

LoadOtherNames() 보호된 메소드

protected LoadOtherNames ( ) : void
리턴 void

OnHandleDestroyed() 보호된 메소드

protected OnHandleDestroyed ( EventArgs e ) : void
e System.EventArgs
리턴 void

OnLoad() 보호된 메소드

Do the initial search when we bring up the control
protected OnLoad ( EventArgs e ) : void
e System.EventArgs
리턴 void

PerformInitialSearch() 공개 메소드

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.
public PerformInitialSearch ( string target ) : void
target string The target.
리턴 void

SelectClosestMatch() 보호된 메소드

Select the first exact match in the language column, or if none found, select the first item.
protected SelectClosestMatch ( ) : void
리턴 void

SettingsForNoLanguage() 보호된 메소드

Fix the settings for either a search failure or clicking on the "None of the above" item.
protected SettingsForNoLanguage ( ) : void
리턴 void

btnFind_Click() 보호된 메소드

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.
protected btnFind_Click ( object sender, System e ) : void
sender object
e System
리턴 void

lvFindResult_SelectedIndexChanged() 보호된 메소드

protected lvFindResult_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void

프로퍼티 상세

btnFind 보호되어 있는 프로퍼티

protected Button,System.Windows.Forms btnFind
리턴 System.Windows.Forms.Button

cboLookup 보호되어 있는 프로퍼티

protected FwOverrideComboBox,SIL.FieldWorks.Common.Controls cboLookup
리턴 SIL.FieldWorks.Common.Controls.FwOverrideComboBox

lblOtherNamesList 보호되어 있는 프로퍼티

protected Label,System.Windows.Forms lblOtherNamesList
리턴 System.Windows.Forms.Label

lvFindResult 보호되어 있는 프로퍼티

protected ListView,System.Windows.Forms lvFindResult
리턴 System.Windows.Forms.ListView

m_lastSearchText 보호되어 있는 프로퍼티

protected string m_lastSearchText
리턴 string

m_messageFilter 보호되어 있는 프로퍼티

protected TrapEnterFilter m_messageFilter
리턴 TrapEnterFilter

m_testing 보호되어 있는 프로퍼티

Overriding testing instances of this class should set this so the DB connection doesn't get created.
protected bool m_testing
리턴 bool

txtFindPattern 보호되어 있는 프로퍼티

protected TextBox,System.Windows.Forms txtFindPattern
리턴 System.Windows.Forms.TextBox