Beispiel #1
0
        private void topicGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            var selected_sec = (MenuLecturerLogic.SectionDisplay)topicGrid.SelectedItem;

            if (selected_sec == null)
            {
                return;
            }
            int sec_id = selected_sec.ID_sekcji;

            membersgrid.ItemsSource = MenuLecturerLogic.getStudentInSection(sec_id);
        }
Beispiel #2
0
        private void sectionsgrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            var select_row = (MenuLecturerLogic.SectionDisplay)sectionsgrid.SelectedItem;

            if (select_row == null)
            {
                return;
            }
            else
            {
                int seleted_secId = select_row.ID_sekcji;
                max_user = select_row.Max_User;
                var tab_source = MenuLecturerLogic.getStudentInSection(seleted_secId);
                StuSecGrid.ItemsSource = tab_source;
            }
        }