C# Class SIL.FieldWorks.Common.Controls.SimpleMatchDlg

SimpleMatchDlg allows the user to type a target string and indicate whether it should match the whole, start, end, or anywhere in the target. It knows how to make a matcher consistent with what the user entered.
Inheritance: System.Windows.Forms.Form, IFWDisposable
ファイルを表示 Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

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.

SetDlgValues ( IMatcher matcher, IVwStylesheet stylesheet ) : void

Initialize the dialog, based on the old matcher, if any, and if recognized.

SimpleMatchDlg ( ILgWritingSystemFactory wsf, IHelpTopicProvider helpTopicProvider, int ws, IVwStylesheet ss, SIL.FieldWorks.FDO.FdoCache cache ) : System

Initializes a new instance of the T:SimpleMatchDlg class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

buttonHelp_Click ( object sender, System e ) : void
control_Click ( object sender, EventArgs e ) : void
m_okButton_Click ( object sender, System e ) : void

Make sure the search text is valid for the type of IMatcher that is created. Use the new IsValid method on the IMatcher interface to make sure it's valid and allow it to continue, otherwise show the errormessage associated with the error and don't allow it to be selected.

m_regExButton_CheckedChanged ( object sender, EventArgs e ) : void
regexHelper_Click ( object sender, EventArgs e ) : void

Method Details

CheckDisposed() public method

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

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
return void

SetDlgValues() public method

Initialize the dialog, based on the old matcher, if any, and if recognized.
public SetDlgValues ( IMatcher matcher, IVwStylesheet stylesheet ) : void
matcher IMatcher The matcher.
stylesheet IVwStylesheet The stylesheet.
return void

SimpleMatchDlg() public method

Initializes a new instance of the T:SimpleMatchDlg class.
public SimpleMatchDlg ( ILgWritingSystemFactory wsf, IHelpTopicProvider helpTopicProvider, int ws, IVwStylesheet ss, SIL.FieldWorks.FDO.FdoCache cache ) : System
wsf ILgWritingSystemFactory The WSF.
helpTopicProvider IHelpTopicProvider The help topic provider.
ws int The ws.
ss IVwStylesheet The ss.
cache SIL.FieldWorks.FDO.FdoCache
return System