private void btn_Save_Click(object sender, EventArgs e) { try { acte act = new acte { titre_acte = txtActe.Text }; acteDao.Add(act); string toastID = "ff3f8021-4b59-4919-b8e3-0d66a6960203"; toastAdd.ShowNotification(toastID); Application.OpenForms["Ajouter_Consultation"].Activate(); this.Close(); } catch (Exception ex) { XtraMessageBox.Show(DevExpress.LookAndFeel.UserLookAndFeel.Default, ex.Message); } }
public void Update(acte acte) { data.Update(acte); }
public void Add(acte acte) { data.Add(acte); }