Exemple #1
0
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            Sqlite.ExecuteNonQuery(Query.addStudentToGroup(addstudentnum, addgroupNum));

            dgStudentsInGroup.ItemsSource = dataTracker.getGroupStudents(groupID.ToString());

            dgStudentsInGroup.Items.Refresh();
        }
Exemple #2
0
        private void comboxGroup_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
        {
            lblSubject.Content   = dataTracker.groupList[comboxGroup.SelectedIndex].groupDesc;
            lblDateRange.Content = dataTracker.groupList[comboxGroup.SelectedIndex].groupSStartDate;
            lblTime.Content      = dataTracker.groupList[comboxGroup.SelectedIndex].groupStartTime;

            groupName            = dataTracker.groupList[comboxGroup.SelectedIndex].groupName;
            groupID              = dataTracker.groupList[comboxGroup.SelectedIndex].groupID;
            dgLesson.ItemsSource = dataTracker.getGroupStudents(groupID.ToString());
            dgDesc.ItemsSource   = dataTracker.getGroupAssignments(groupID.ToString());

            dgLesson.Items.Refresh();
            dgDesc.Items.Refresh();

            btnAddStudent.IsEnabled    = true;
            btnAddAssignment.IsEnabled = true;
        }
Exemple #3
0
        public wpfAddStudent()
        {
            Sqlite = new clsSQLite();

            Query = new SQLquery();

            dataTracker = new clsDataTracker();


            InitializeComponent();

            lblGroup.Content              = groupName;
            dgAllStudents.ItemsSource     = dataTracker.makeStudentList();
            dgStudentsInGroup.ItemsSource = dataTracker.getGroupStudents(groupID.ToString());
        }