Esempio n. 1
0
 //Handles a click on Add->*
 private void addEntry(object sender, RoutedEventArgs e)
 {
     MenuItem addSelection = sender as MenuItem;
     EditEntry EditEntryWindow = new EditEntry((EntityType)addSelection.Tag);
     EditEntryWindow.ShowDialog();
     entryList.Items.Refresh();
 }
Esempio n. 2
0
 //Handles a click on the Edit button
 private void editEntry(object sender, RoutedEventArgs e)
 {
     EditEntry EditEntryWindow = new EditEntry(entryList.SelectedIndex); //Would have passed a ref to an object in BibEntity.entityList, but for some reason that's not possible
     EditEntryWindow.ShowDialog();
     entryList.Items.Refresh();
 }