Ejemplo n.º 1
0
 private void button7_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("YES or No?", "Are you sure you want to delete all database information? ", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
     {
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Addiction()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Admission()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Billing()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Branch()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Bill()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Expense()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Patient()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Category()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Beds()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Cd10()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Chronic()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Clinics()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Departments()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Diagnosis()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Discipline()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Dosage()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Events()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Expense()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Item()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Lab()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Notes()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Operations()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Organisation()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Patient()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Procedures()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Profession()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Queue()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Results()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Roles()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Room()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Services()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Specimens()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Stock()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Tests()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Theatre()));
         // Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Transaction()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Transactor()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Users()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Vitals()));
         Connection.createSQLLiteDB(DBConnect.EmptyDBSQL(new Wards()));
     }
 }