private void addItemButton_Click(object sender, RoutedEventArgs e) { optionsExpander.IsExpanded = false; editItemWindow newItemWindow = new editItemWindow(editItemWindow.editTypes.Add); newItemWindow.editActionCompleted += editDone; expanderContent.Content = newItemWindow; }
// Triggered once an edit button is pushed in results window. void sresults_EditActionInvoked(object sender, EventArgs e) { editItemWindow editWindow = new editItemWindow(editItemWindow.editTypes.Edit, (AbstractItem)sender); editWindow.editActionCompleted += editDone; expanderContent.Content = editWindow; }