C# Класс MtEnhancedTradosPlugin.MtProviderConfDialog

Наследование: System.Windows.Forms.Form
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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

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

Метод Описание
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.

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

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

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
Результат void

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

public MtProviderConfDialog ( MtTranslationOptions options, ITranslationProviderCredentialStore credentialStore ) : System
options MtTranslationOptions
credentialStore ITranslationProviderCredentialStore
Результат System

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

public MtProviderConfDialog ( MtTranslationOptions options, string caption, ITranslationProviderCredentialStore credentialStore ) : System
options MtTranslationOptions
caption string
credentialStore ITranslationProviderCredentialStore
Результат System