C# Class MtEnhancedTradosPlugin.MtTranslationProviderWinFormsUI

Inheritance: ITranslationProviderWinFormsUI
Exibir arquivo Open project: patrickporter/MT-Enhanced-Trados-Plugin

Public Methods

Method Description
Browse ( IWin32Window owner, LanguagePair languagePairs, ITranslationProviderCredentialStore credentialStore ) : ITranslationProvider[]
Edit ( IWin32Window owner, ITranslationProvider translationProvider, LanguagePair languagePairs, ITranslationProviderCredentialStore credentialStore ) : bool
GetCredentialsFromUser ( IWin32Window owner, Uri translationProviderUri, string translationProviderState, ITranslationProviderCredentialStore credentialStore ) : bool
GetDisplayInfo ( Uri translationProviderUri, string translationProviderState ) : TranslationProviderDisplayInfo
SupportsTranslationProviderUri ( Uri translationProviderUri ) : bool

Private Methods

Method Description
GetMyCredentials ( ITranslationProviderCredentialStore credentialStore, string uri ) : TranslationProviderCredential

Show the plug-in settings form when the user is adding the translation provider plug-in through the GUI of SDL Trados Studio

SetGoogleCredentials ( ITranslationProviderCredentialStore credentialStore, string apiKey, bool persistKey ) : void
SetMstCredentials ( ITranslationProviderCredentialStore credentialStore, GenericCredentials creds, bool persistCred ) : void

Method Details

Browse() public method

public Browse ( IWin32Window owner, LanguagePair languagePairs, ITranslationProviderCredentialStore credentialStore ) : ITranslationProvider[]
owner IWin32Window
languagePairs LanguagePair
credentialStore ITranslationProviderCredentialStore
return ITranslationProvider[]

Edit() public method

public Edit ( IWin32Window owner, ITranslationProvider translationProvider, LanguagePair languagePairs, ITranslationProviderCredentialStore credentialStore ) : bool
owner IWin32Window
translationProvider ITranslationProvider
languagePairs LanguagePair
credentialStore ITranslationProviderCredentialStore
return bool

GetCredentialsFromUser() public method

public GetCredentialsFromUser ( IWin32Window owner, Uri translationProviderUri, string translationProviderState, ITranslationProviderCredentialStore credentialStore ) : bool
owner IWin32Window
translationProviderUri System.Uri
translationProviderState string
credentialStore ITranslationProviderCredentialStore
return bool

GetDisplayInfo() public method

public GetDisplayInfo ( Uri translationProviderUri, string translationProviderState ) : TranslationProviderDisplayInfo
translationProviderUri System.Uri
translationProviderState string
return TranslationProviderDisplayInfo

SupportsTranslationProviderUri() public method

public SupportsTranslationProviderUri ( Uri translationProviderUri ) : bool
translationProviderUri System.Uri
return bool