private void EditWordButton_Click(object sender, RoutedEventArgs e)
 {
     if (DictionaryListWords.SelectedIndex != -1)
     {
         WordProperties wp = new WordProperties(dict, DictionaryListWords.SelectedIndex);
         wp.Show();
     }
 }
 private void EditWordButton_Click(object sender, RoutedEventArgs e)
 {
     if (DictionaryListWords.SelectedIndex != -1)
     {
         WordProperties wp = new WordProperties(dict, DictionaryListWords.SelectedIndex);
         wp.Show();
     }
 }
        private void AddWordButton_Click(object sender, RoutedEventArgs e)
        {
            WordProperties wp = new WordProperties(dict, null);

            wp.Show();
        }
 private void AddWordButton_Click(object sender, RoutedEventArgs e)
 {
     WordProperties wp = new WordProperties(dict, null);
     wp.Show();
 }