Пример #1
0
 private void ConfigureDictionary(string currentDictionaryId, DataGridViewComboBoxCell dictionariesCombo, TradosToMTEdgeLP entry)
 {
     if (string.IsNullOrEmpty(currentDictionaryId))
     {
         Options.LPPreferences[entry.TradosCulture].DictionaryId = entry.Dictionaries[0].DictionaryId;
         dictionariesCombo.Value = entry.Dictionaries[0].DictionaryId;
     }
     else
     {
         dictionariesCombo.Value = currentDictionaryId;
         Options.LPPreferences[entry.TradosCulture].DictionaryId = currentDictionaryId;
     }
 }
 private void ConfigureDictionary(string currentDictionaryId, DataGridViewComboBoxCell dictionariesCombo, TradosToMTEdgeLP entry)
 {
     if (string.IsNullOrEmpty(currentDictionaryId))
     {
         if (!dictionariesCombo.Value.Equals(entry.Dictionaries[0].DictionaryId))
         {
             dictionariesCombo.Value = entry.Dictionaries[0].DictionaryId;
         }
         Options.LPPreferences[entry.TradosCulture].DictionaryId = entry.Dictionaries[0].DictionaryId;
     }
     else
     {
         //avoid to trigger again the grid cell changed event
         if (!dictionariesCombo.Value.Equals(currentDictionaryId))
         {
             dictionariesCombo.Value = currentDictionaryId;
         }
         Options.LPPreferences[entry.TradosCulture].DictionaryId = currentDictionaryId;
     }
 }