예제 #1
0
 private void addItemButton_Click(object sender, RoutedEventArgs e)
 {
     optionsExpander.IsExpanded = false;
     editItemWindow newItemWindow = new editItemWindow(editItemWindow.editTypes.Add);
     newItemWindow.editActionCompleted += editDone;
     expanderContent.Content = newItemWindow;
 }
예제 #2
0
 // 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;
 }