Exemple #1
0
        public wpfStudentDetail()
        {
            Sqlite = new clsSQLite();

            Query       = new SQLquery();
            dataTracker = new clsDataTracker();

            InitializeComponent();

            dgStudentList.ItemsSource = dataTracker.makeStudentList();
        }
Exemple #2
0
        private void btnAddStudent_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                wpfStudent student = new wpfStudent();
                student.ShowDialog();

                dgStudentList.ItemsSource = dataTracker.makeStudentList();


                dgStudentList.Items.Refresh();

                this.Show();
            }
            catch (Exception ex)
            {
                //handle error method
                HandleError(MethodInfo.GetCurrentMethod().DeclaringType.Name,
                            MethodInfo.GetCurrentMethod().Name, ex.Message);
            }
        }
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());
        }