private void btnBrowse_Click(object sender, EventArgs e)
        {
            var folderDialog = new FolderSelectDialog();

            if (folderDialog.ShowDialog())
            {
                List <TranslationMemoryInfo> tms = _tmHelper.LoadTmsFromPath(folderDialog.FileName);
                foreach (var tm in tms)
                {
                    lstTms.Items.Add(tm);
                }
            }
        }
Exemple #2
0
 private void btnBrowse_Click(object sender, EventArgs e)
 {
     using (var folderDialog = new FolderBrowserDialog())
     {
         var dialogResult = folderDialog.ShowDialog();
         if (dialogResult != DialogResult.OK || string.IsNullOrEmpty(folderDialog.SelectedPath))
         {
             return;
         }
         List <TranslationMemoryInfo> tms = _tmHelper.LoadTmsFromPath(folderDialog.SelectedPath);
         foreach (var tm in tms)
         {
             lstTms.Items.Add(tm);
         }
     }
 }