Пример #1
0
 private void MetroButton1_Click(object sender, EventArgs e)
 {
     supplierBindingSource.EndEdit();
     db.SaveChangesAsync();
     System.Windows.Forms.MessageBox.Show("Saved!");
     this.Close();
 }
Пример #2
0
 private void BtnSave_Click(object sender, EventArgs e)
 {
     customerBindingSource.EndEdit();
     db.SaveChangesAsync();
     System.Windows.Forms.MessageBox.Show("Saved!");
     this.Close();
 }