Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 private void tbTranslatableWord_TextChanged(object sender, EventArgs e)
 {
     lbTranslate.Text = currentDictionary.Search(tbTranslatableWord.Text);
 }