Beispiel #1
0
 //  This method saves the updated product link information to the database.
 private void saveExistingProductLinkInformationToDb()
 {
     if (SqliteDAProductLink.UpdateProductLinkById(productLink))
     {
         DialogResult dialogResult = MessageBox.Show("New product link updated successfully", "Edit Product Link",
                                                     MessageBoxButtons.OK, MessageBoxIcon.Information);
         if (dialogResult == DialogResult.OK)
         {
             this.Close();
         }
     }
     else
     {
         MessageBox.Show("Something went wrong. Product link could not be updated.\nCheck the error log for more information.", "Edit Product Link Error",
                         MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }