Esempio n. 1
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();
        }
Esempio n. 2
0
 public void Ref()
 {
     DBUtils.DataSource();
     lbStudents.DataSource = Students.Items.ToList();
 }