Beispiel #1
0
 /// <summary>
 /// If <paramref name="currentProduct"/> is not null or whitespace, attempt to insert that product to DB.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BtnTrackItem_Click(object sender, EventArgs e)
 {
     if (!string.IsNullOrWhiteSpace(currentProduct.Product_ID.ToString()))
     {
         DB_Manager.InsertProduct(currentProduct);
     }
 }