public ITranslationProvider[] Browse(IWin32Window owner, LanguagePair[] languagePairs, ITranslationProviderCredentialStore credentialStore)
        {
            //throw new NotImplementedException();
            DeepLSamplerProviderConfDialog dialog = new DeepLSamplerProviderConfDialog(new DeepLSamplerTranslationOptions());

            if (dialog.ShowDialog(owner) == DialogResult.OK)
            {
                DeepLSamplerTranslationProvider testProvider = new DeepLSamplerTranslationProvider(dialog.Options);
                return(new ITranslationProvider[] { testProvider });
            }
            return(null);
        }
        public bool Edit(IWin32Window owner, ITranslationProvider translationProvider, LanguagePair[] languagePairs, ITranslationProviderCredentialStore credentialStore)
        {
            //throw new NotImplementedException();
            DeepLSamplerTranslationProvider editProvider = translationProvider as DeepLSamplerTranslationProvider;

            if (editProvider == null)
            {
                return(false);
            }

            DeepLSamplerProviderConfDialog dialog = new DeepLSamplerProviderConfDialog(editProvider.Options);

            if (dialog.ShowDialog(owner) == DialogResult.OK)
            {
                editProvider.Options = dialog.Options;
                return(true);
            }

            return(false);
        }