Exemple #1
0
        private void NewWordCardBtn_Click(object sender, RoutedEventArgs e)
        {
            EditWordCard editDialog = new EditWordCard();

            editDialog.Owner = Window.GetWindow(this);
            editDialog.ShowDialog();
            LoadXmlWithWordCards(); // update output
        }
Exemple #2
0
 private void EditWordCardBtn_Click(object sender, RoutedEventArgs e)
 {
     if (listViewWordCards.SelectedItem != null)
     {
         WordCard     wc         = UnSerializeXmlElement <WordCard>(listViewWordCards.SelectedItem as XmlElement);
         int          index      = listViewWordCards.SelectedIndex;
         EditWordCard editDialog = new EditWordCard(wc, index);
         editDialog.Owner = Window.GetWindow(this);
         editDialog.ShowDialog();
         LoadXmlWithWordCards(); // update output
     }
 }