Exemple #1
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();
 }
Exemple #2
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            if (!File.Exists(DBUtils.Path))
            {
                DBUtils.CreateNewDatabase();
            }
            DBUtils.ConnectToDatabase();

            //TODO: Run once :  DBUtils.CreateTable();
            DBUtils.DataSource();
            Ref();
        }
Exemple #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();
        }