Пример #1
0
        private void btnAddInstructor_Click(object sender, RoutedEventArgs e)
        {
            var window = new InstructorCRUD(new Instructor(), WindowType.NewEntity);

            window.InstructorChangesMade += InstructorAdded;
            window.Show();
        }
Пример #2
0
        private void btnEditInstructor_Click(object sender, RoutedEventArgs e)
        {
            Instructor selected = lboxInstructors.SelectedItem as Instructor;
            var        window   = new InstructorCRUD(selected, WindowType.EditEntity);

            window.InstructorChangesMade += InstructorEdited;
            window.Show();
        }