Example #1
0
 private void submitbtn_Click(object sender, EventArgs e)
 {
     if (ProductObjectFill())
     {
         if (DatabaseOperation.AddorUpdateItem(product))
         {
             MessageBox.Show("Addition or modification to the database is a success");
             Update_Dataset();
         }
         else
         {
             MessageBox.Show("Unable to add or modify the database, please try again later");
         }
     }
 }