示例#1
0
 public void Ref()
 {
     DBUtils.StudentDataSource();
     DBUtils.TeacherDataSource();
     lbStudents.DataSource = Students.Items.ToList();
     lbTeachers.DataSource = Teachers.Items.ToList();
 }
示例#2
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     if (!File.Exists(DBUtils.DB[0]))
     {
         DBUtils.CreateNewDatabase(DBUtils.DB[0]);
     }
     label1.Text = string.Format("Вы вошли как: {0}", TeacherName);
     //TODO: Run once :  DBUtils.CreateTable(DBUtils.QuerryStudent,DBUtils.StudentSqLiteConnection);
     DBUtils.StudentDataSource();
     Ref();
 }
示例#3
0
        private void AdminPanel_Load(object sender, EventArgs e)
        {
            if (!File.Exists(DBUtils.DB[0]))
            {
                DBUtils.CreateNewDatabase(DBUtils.DB[0]);
            }
            //TODO: Run once :  DBUtils.CreateTable(DBUtils.QuerryStudent, DBUtils.StudentSqLiteConnection);
            //TODO: Run once :  DBUtils.CreateTable(DBUtils.QuerryTeachers, DBUtils.Teacherconn);

            DBUtils.StudentDataSource();
            DBUtils.TeacherDataSource();
            Ref();
        }