C# Class MtEnhancedTradosPlugin.MtProviderConfDialog

Inheritance: System.Windows.Forms.Form
Afficher le fichier Open project: patrickporter/MT-Enhanced-Trados-Plugin Class Usage Examples

Méthodes publiques

Méthode Description
DisableForCredentialsOnly ( ) : void

Allows disabling all controls except for the ones to put in the credentials. This is useful when Trados Studio receives a credential exception (i.e. when we throw it from the Factory class if there are no credentials configured), because any changes in the form to other settings cannot be saved in this case, so the user could be confused. This converts the settings form into a form that just takes the credentials.

MtProviderConfDialog ( MtTranslationOptions options, ITranslationProviderCredentialStore credentialStore ) : System
MtProviderConfDialog ( MtTranslationOptions options, string caption, ITranslationProviderCredentialStore credentialStore ) : System

Private Methods

Méthode Description
BrowseEditFile ( ) : string
LoadResources ( ) : void

Loads strings to the form from our resources file....defaults have been set in the designer so this can be called in a try block

ShowCredBox ( ) : void
UpdateDialog ( ) : void
ValidateForm ( ) : bool
btnBrowsePostEditFile_Click ( object sender, EventArgs e ) : void
btnBrowsePreEdit_Click ( object sender, EventArgs e ) : void
btnDeleteSavedGoogleKey_Click ( object sender, EventArgs e ) : void
btnDeleteSavedMicrosoftCreds_Click ( object sender, EventArgs e ) : void
btn_Cancel_Click ( object sender, EventArgs e ) : void
btn_OK_Click ( object sender, EventArgs e ) : void
chkCatId_CheckedChanged ( object sender, EventArgs e ) : void
chkUsePostEdit_CheckedChanged ( object sender, EventArgs e ) : void
chkUsePreEdit_CheckedChanged ( object sender, EventArgs e ) : void
comboProvider_SelectedIndexChanged ( object sender, EventArgs e ) : void
editControlsSetEnabled ( Control enableSet, CheckBox boxToConsult ) : void

Enables or disables a set of controls based on whether the given checkbox is checked or unchecked.

Method Details

DisableForCredentialsOnly() public méthode

Allows disabling all controls except for the ones to put in the credentials. This is useful when Trados Studio receives a credential exception (i.e. when we throw it from the Factory class if there are no credentials configured), because any changes in the form to other settings cannot be saved in this case, so the user could be confused. This converts the settings form into a form that just takes the credentials.
public DisableForCredentialsOnly ( ) : void
Résultat void

MtProviderConfDialog() public méthode

public MtProviderConfDialog ( MtTranslationOptions options, ITranslationProviderCredentialStore credentialStore ) : System
options MtTranslationOptions
credentialStore ITranslationProviderCredentialStore
Résultat System

MtProviderConfDialog() public méthode

public MtProviderConfDialog ( MtTranslationOptions options, string caption, ITranslationProviderCredentialStore credentialStore ) : System
options MtTranslationOptions
caption string
credentialStore ITranslationProviderCredentialStore
Résultat System