예제 #1
0
        private void DgTeachersStudents_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            // selecting a student as a teacher with a double click

            var iep = (Students)dgTeachersStudents.SelectedItem;

            var details = new IEPdetails(iep);

            var result = details.ShowDialog();

            MessageBox.Show(result.ToString());
        }
예제 #2
0
        /*
         * Teacher functions and tabs ////////////////////////////////////////////////////////////////////////////////////////
         *
         */
        private void BtnSelectStudent_Click(object sender, RoutedEventArgs e)
        {
            // selecting a student as a teacher

            var iep = (Students)dgTeachersStudents.SelectedItem;

            var details = new IEPdetails(iep);

            var result = details.ShowDialog();

            MessageBox.Show(result.ToString());
        }