Esempio n. 1
0
 private void editBtn_Click(object sender, EventArgs e)
 {
     ChequeView dbv = new ChequeView(new DAOs.CheckDAO(db).selectCheck(((ChequeTurnFull)cb.Current).ID));
     dbv.ShowDialog();
     new DAOs.CheckDAO(db).update();
     updateTable();
 }
Esempio n. 2
0
 internal static ChequeView newCheck()
 {
     Check c = new Check();
     ChequeView cv = new ChequeView(c);
     new DAOs.CheckDAO(cv.db).insertOnSubmit(c);
     return cv;
 }