示例#1
0
        public wpfUpdateDesc()
        {
            InitializeComponent();

            Sqlite = new clsSQLite();
            Query  = new SQLquery();
        }
示例#2
0
        public wpfDescription()
        {
            InitializeComponent();

            Sqlite = new clsSQLite();
            Query  = new SQLquery();
        }
示例#3
0
        public wpfStudentEdit()
        {
            InitializeComponent();

            Sqlite = new clsSQLite();
            Query  = new SQLquery();
        }
示例#4
0
        public wpfMoreGroupDetail()
        {
            InitializeComponent();
            Sqlite = new clsSQLite();

            Query = new SQLquery();

            dataTracker = new clsDataTracker();
        }
示例#5
0
        public wpfDescDetail()
        {
            InitializeComponent();

            Sqlite = new clsSQLite();

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

            dgDesc.ItemsSource = dataTracker.makeDescriptionList();
        }
示例#6
0
        public wpfStudentDetail()
        {
            Sqlite = new clsSQLite();

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

            InitializeComponent();

            dgStudentList.ItemsSource = dataTracker.makeStudentList();
        }
示例#7
0
        public clsDataTracker()
        {
            Sqlite      = new clsSQLite();
            Query       = new SQLquery();
            descList    = new List <DescriptionDetail>();
            StudentList = new List <StudentDetail>();
            groupList   = new List <GroupDetail>();
            sGroupList  = new List <StudentGroupList>();
            gpAList     = new List <GroupAssignmentList>();

            studentScore = new List <StudentScoreDetail>();
        }
示例#8
0
        public wpfStudent()
        {
            InitializeComponent();

            Sqlite = new clsSQLite();
            Query  = new SQLquery();

            if (int.TryParse(Sqlite.ExecuteScalarSQL(Query.getMaxIndex()).ToString(), out int mId))
            {
                maxId = mId + 1;
            }
            tbSId.IsEnabled = false;
            tbSId.Text      = maxId.ToString();
        }
示例#9
0
        public wpfGroupDetail()
        {
            InitializeComponent();

            Sqlite = new clsSQLite();

            Query = new SQLquery();

            dataTracker = new clsDataTracker();



            dgGroupList.ItemsSource = dataTracker.makeGroupList();
        }
示例#10
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());
        }
示例#11
0
        public wpfGroup()
        {
            Sqlite = new clsSQLite();

            Query = new SQLquery();

            dataTracker = new clsDataTracker();

            InitializeComponent();
            FocusManager.SetFocusedElement(this, txtGroupName);
            dteDate.SelectedDate = DateTime.Today;
            for (int i = 0; i < hours.Length; i++)
            {
                cboxHour.Items.Add(hours[i]);
            }
            for (int i = 0; i < minutes.Length; i++)
            {
                cboxMin.Items.Add(minutes[i]);
            }
            Application.Current.ShutdownMode = ShutdownMode.OnMainWindowClose;
        }
示例#12
0
        public wpfDataSheet()
        {
            Sqlite = new clsSQLite();

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

            InitializeComponent();
            Application.Current.ShutdownMode = ShutdownMode.OnMainWindowClose;



            //dgDesc.ItemsSource = dataTracker.makeDescriptionList();

            //  dgLesson.ItemsSource = dataTracker.makeStudentList();

            dataTracker.makeGroupList();
            for (int i = 0; i < dataTracker.groupList.Count; i++)
            {
                comboxGroup.Items.Add(dataTracker.groupList[i].groupName);
            }
        }