C# Класс SIL.FieldWorks.FwCoreDlgs.CnvtrPropertiesCtrl

Summary description for CnvtrPropertiesCtrl.
Public so we can test it
Наследование: System.Windows.Forms.UserControl, IFWDisposable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
btnMapFile System.Windows.Forms.Button
cboConversion SIL.FieldWorks.Common.Controls.FwOverrideComboBox
cboConverter SIL.FieldWorks.Common.Controls.FwOverrideComboBox
cboSpec SIL.FieldWorks.Common.Controls.FwOverrideComboBox
m_specs string
m_supportedConverter bool
txtMapFile System.Windows.Forms.TextBox
txtName System.Windows.Forms.TextBox

Private Properties

Свойство Тип Описание
AddToCollection void
AutoConfigureEx bool
CompareEncInfo int
GetConverterStringForType string
InitializeComponent void
SetConverterType void
SetReadyToGiveCodePage void
SetReadyToGiveMapFile void
SetReadyToGiveRegEx void
SetReadyToGiveSpec void
SetStates void
btnMapFile_Click void
btnModify_Click void
btnMore_Click void
cboConversion_SelectedIndexChanged void
cboConverter_SelectedIndexChanged void
cboSpec_SelectedIndexChanged void
txtName_TextChanged void

Открытые методы

Метод Описание
CheckDisposed ( ) : void

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.

CnvtrPropertiesCtrl ( ) : System

Initializes a new instance of the T:CnvtrPropertiesCtrl class.

CnvtrPropertiesCtrl_Load ( object sender, System e ) : void

Occurs on loading the Properties Tab

EnableEntirePane ( bool toState ) : void

Enable/Disable everything in the pane

RaiseConverterFileChanged ( ) : void

The coverter has changed. Notify anyone who cares.

RaiseConverterSaved ( ) : void

We saved a new or modified mapping, notify anyone who cares.

RaiseListChanged ( ) : void

Something that happened in our control changed the list of mappings. Notify anyone who cares.

SelectMapping ( string mapname ) : void

In the standard usage, this is called from the selection changed event handler of the combo box that shows the installed mappings.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnConverterFileChanged ( EventArgs ea ) : void

A converter has been modified. The default handler just notifies delegates.

OnConverterListChanged ( EventArgs ea ) : void

Raises the converter list changed event.

OnConverterSaved ( EventArgs ea ) : void

A new converter has been added or a modified one saved. The default handler just notifies delegates.

txtMapFile_TextChanged ( object sender, System e ) : void

Triggered when the text has been changed

Приватные методы

Метод Описание
AddToCollection ( IEncConverter rConverter, string converterName ) : void

Adds the converter to the collection.

AutoConfigureEx ( IEncConverter rIEncConverter, ConvType eConversionTypeFilter, string &strFriendlyName, string strLhsEncodingID, string strRhsEncodingID ) : bool

Automatically configures.

CompareEncInfo ( System x, System y ) : int
GetConverterStringForType ( ConverterType type ) : string

Gets the string mapped to the type for the converter.

InitializeComponent ( ) : void

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

SetConverterType ( ConvType setConvType ) : void

Sets the type of the converter in the combobox for the currently selected encoding converter.

SetReadyToGiveCodePage ( ) : void
SetReadyToGiveMapFile ( ) : void
SetReadyToGiveRegEx ( ) : void
SetReadyToGiveSpec ( ) : void
SetStates ( bool existingConvs, bool installedConverter ) : void

Sets the states.

btnMapFile_Click ( object sender, System e ) : void

Handles the Click event of the btnMapFile control.

btnModify_Click ( object sender, EventArgs e ) : void
btnMore_Click ( object sender, EventArgs e ) : void
cboConversion_SelectedIndexChanged ( object sender, System e ) : void

Handles the SelectedIndexChanged event of the cboConversion control.

cboConverter_SelectedIndexChanged ( object sender, System e ) : void
cboSpec_SelectedIndexChanged ( object sender, System e ) : void

Handles the SelectedIndexChanged event of the cboSpec control.

txtName_TextChanged ( object sender, System e ) : void

Handles the TextChanged event of the txtName control.

Описание методов

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

CnvtrPropertiesCtrl() публичный Метод

Initializes a new instance of the T:CnvtrPropertiesCtrl class.
public CnvtrPropertiesCtrl ( ) : System
Результат System

CnvtrPropertiesCtrl_Load() публичный Метод

Occurs on loading the Properties Tab
public CnvtrPropertiesCtrl_Load ( object sender, System e ) : void
sender object The source of the event.
e System The instance containing the event /// data.
Результат void

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

EnableEntirePane() публичный Метод

Enable/Disable everything in the pane
public EnableEntirePane ( bool toState ) : void
toState bool True if enabling, False if disabling.
Результат void

OnConverterFileChanged() защищенный Метод

A converter has been modified. The default handler just notifies delegates.
protected OnConverterFileChanged ( EventArgs ea ) : void
ea System.EventArgs
Результат void

OnConverterListChanged() защищенный Метод

Raises the converter list changed event.
protected OnConverterListChanged ( EventArgs ea ) : void
ea System.EventArgs The instance containing the event /// data.
Результат void

OnConverterSaved() защищенный Метод

A new converter has been added or a modified one saved. The default handler just notifies delegates.
protected OnConverterSaved ( EventArgs ea ) : void
ea System.EventArgs
Результат void

RaiseConverterFileChanged() публичный Метод

The coverter has changed. Notify anyone who cares.
public RaiseConverterFileChanged ( ) : void
Результат void

RaiseConverterSaved() публичный Метод

We saved a new or modified mapping, notify anyone who cares.
public RaiseConverterSaved ( ) : void
Результат void

RaiseListChanged() публичный Метод

Something that happened in our control changed the list of mappings. Notify anyone who cares.
public RaiseListChanged ( ) : void
Результат void

SelectMapping() публичный Метод

In the standard usage, this is called from the selection changed event handler of the combo box that shows the installed mappings.
public SelectMapping ( string mapname ) : void
mapname string
Результат void

txtMapFile_TextChanged() защищенный Метод

Triggered when the text has been changed
protected txtMapFile_TextChanged ( object sender, System e ) : void
sender object
e System
Результат void

Описание свойств

btnMapFile публичное свойство

public Button,System.Windows.Forms btnMapFile
Результат System.Windows.Forms.Button

cboConversion публичное свойство

public FwOverrideComboBox,SIL.FieldWorks.Common.Controls cboConversion
Результат SIL.FieldWorks.Common.Controls.FwOverrideComboBox

cboConverter публичное свойство

public FwOverrideComboBox,SIL.FieldWorks.Common.Controls cboConverter
Результат SIL.FieldWorks.Common.Controls.FwOverrideComboBox

cboSpec публичное свойство

public FwOverrideComboBox,SIL.FieldWorks.Common.Controls cboSpec
Результат SIL.FieldWorks.Common.Controls.FwOverrideComboBox

m_specs публичное свойство

The actual specs string that will be used to initialize a new converter.
public string m_specs
Результат string

m_supportedConverter публичное свойство

Is the loaded converter supported? True if no conv is loaded. Basically, we're just trying to find out if we should prevent the user from changing a converter that we are unable to modify.
public bool m_supportedConverter
Результат bool

txtMapFile публичное свойство

public TextBox,System.Windows.Forms txtMapFile
Результат System.Windows.Forms.TextBox

txtName публичное свойство

name of the converter
public TextBox,System.Windows.Forms txtName
Результат System.Windows.Forms.TextBox