예제 #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 addAssignmentClick(object sender, RoutedEventArgs e)
        {
            EditAssignment editWin = new EditAssignment(clas);

            editWin.ShowDialog();
            if (editWin.createdCW != null)
            {
                uncompletedClasswork.Add(editWin.createdCW);
            }
        }
예제 #3
0
        private void btnNewAssignment_Click(object sender, RoutedEventArgs e)
        {
            EditAssignment editor = new EditAssignment();

            editor.Show();
        }