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(); }
internal static ChequeView newCheck() { Check c = new Check(); ChequeView cv = new ChequeView(c); new DAOs.CheckDAO(cv.db).insertOnSubmit(c); return cv; }