public TmAnonymizerUserControl()
        {
            InitializeComponent();
            //var tm = new ServerBasedTranslationMemory(translationProviderServer);

            if (!Directory.Exists(Constants.SettingsFolderPath))
            {
                Directory.CreateDirectory(Constants.SettingsFolderPath);
            }
            if (!File.Exists(Constants.SettingsFilePath))
            {
                var settingsFile = File.Create(Constants.SettingsFilePath);
                settingsFile.Close();
            }
            if (!AgreementMethods.UserAgreed())
            {
                var acceptWindow = new AcceptWindow();
                acceptWindow.InitializeComponent();
                acceptWindow.Show();
                acceptWindow.Closing += AcceptWindow_Closing;
            }
            else
            {
                LoadTmView();
            }
        }
Esempio n. 2
0
        public TmAnonymizerUserControl()
        {
            InitializeComponent();
            InitializeWpfApplicationSettings();

            if (!SettingsMethods.UserAgreed())
            {
                var acceptWindow = new AcceptWindow();
                acceptWindow.InitializeComponent();
                acceptWindow.Show();
                acceptWindow.Closing += AcceptWindow_Closing;
            }
            else
            {
                LoadTmView();
            }
        }