Ejemplo n.º 1
0
 private void saveToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Do You Want To Save Current Updates To Selected Employee?", "Save Updates", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) == DialogResult.Yes)
     {
         DBCommands.Update(dbGrid, this.id, executeCMD, missingField);
         loadData("");
         resetForm();
     }
     else
     {
         MessageBox.Show("Updates Were Not Saved", "Not Saved", MessageBoxButtons.OK, MessageBoxIcon.Information);
         loadData("");
         resetForm();
     }
 }
Ejemplo n.º 2
0
 private void updateBtn_Click(object sender, EventArgs e)
 {
     DBCommands.Update(dbGrid, this.id, executeCMD, missingField);
     loadData("");
     resetForm();
 }