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 addAssignmentClick(object sender, RoutedEventArgs e) { EditAssignment editWin = new EditAssignment(clas); editWin.ShowDialog(); if (editWin.createdCW != null) { uncompletedClasswork.Add(editWin.createdCW); } }
private void btnNewAssignment_Click(object sender, RoutedEventArgs e) { EditAssignment editor = new EditAssignment(); editor.Show(); }