private void EditClick(object sender, RoutedEventArgs e) { Button button = (Button)sender; Classwork cw = (Classwork)button.DataContext; EditAssignment edit = new EditAssignment(cw); edit.Show(); }
private void btnNewAssignment_Click(object sender, RoutedEventArgs e) { EditAssignment editor = new EditAssignment(); editor.Show(); }