private void editButton_Click(object sender, RoutedEventArgs e)
        {
            if (matchedItemsListbox.SelectedItem == null)
            {
                MessageBox.Show(AppResources.NoWordSelected);
            }
            else
            {
                DetailWordItem wordItem = matchedItemsListbox.SelectedItem as DetailWordItem;

                editWordsControl.Visibility = System.Windows.Visibility.Visible;
                editWordsControl.FillControl(wordItem.value);
            }
        }
        private void showLessonButton_Click(object sender, RoutedEventArgs e)
        {
            if (matchedItemsListbox.SelectedItem == null)
            {
                MessageBox.Show(AppResources.NoWordSelected);
            }
            else
            {
                DetailWordItem wordItem = matchedItemsListbox.SelectedItem as DetailWordItem;

                DataManager.InitializeAppData(wordItem.value.Lesson);

                NavigationService.Navigate(new Uri("/Pages/ShowVocabPage.xaml", UriKind.Relative));

                matchedItemsListbox.SelectedItem = null;
            }
        }
        public void UpdatePage()
        {
            DetailWordItem wordItem = matchedItemsListbox.SelectedItem as DetailWordItem;

            wordItem.Update();
        }