示例#1
0
        private void EditClick(object sender, RoutedEventArgs e)
        {
            Button         button = (Button)sender;
            Classwork      cw     = (Classwork)button.DataContext;
            EditAssignment edit   = new EditAssignment(cw);

            edit.Show();
        }
示例#2
0
        private void btnNewAssignment_Click(object sender, RoutedEventArgs e)
        {
            EditAssignment editor = new EditAssignment();

            editor.Show();
        }