Exemple #1
0
 private void SearchWord(string word)
 {
     if (!String.IsNullOrEmpty(word))
     {
         long value;
         bool found = trie.TryRead(word, out value);
         txtFindResults.Text += word + " - " + (found ? value.ToString() : "NULL") + Environment.NewLine;
     }
     else
     {
         MessageBox.Show("Invalid value");
     }
 }