public void Thesaurus(Dictionary <string, string> lang) { foreach (var item in lang) { Translate.Add(item.Key, item.Value); } }
public void ReadTextSpeak() { using (StreamReader reading = new StreamReader("textwords.csv")) { while (!reading.EndOfStream) { var line = reading.ReadLine(); var values = line.Split(','); Translate.Add(new TextSpeak(values[0], values[1])); } } }