public MyDictionary Crossing(MyDictionary dictionary, string newDictionaryName) { MyDictionary newDictionary = new MyDictionary(newDictionaryName); var keys = this.dictionary.Keys; foreach (var key in keys) { string tempValue = this.dictionary[key]; if (dictionary.ContainsKey(key) && dictionary.Search(key).Equals(tempValue)) { newDictionary.Add(key, tempValue); } } return(newDictionary); }
private void tbTranslatableWord_TextChanged(object sender, EventArgs e) { lbTranslate.Text = currentDictionary.Search(tbTranslatableWord.Text); }