public DisplayWords(DictionaryController controller)
        {
            this.controller = controller;

            InitializeComponent();

            pickLanguage.ItemsSource = controller.GetLanguages();
            words.ItemsSource        = controller.GetWords();
        }
        private void LanguageSelected(object sender, SelectionChangedEventArgs e)
        {
            if (pickLanguage.SelectedValue != null)
            {
                int id = (int)pickLanguage.SelectedValue;

                controller.SetLanguage(id);

                pickLanguage.ItemsSource = controller.GetLanguages();
                words.ItemsSource        = controller.GetWords();
            }
        }