SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 495 | Next

Scott Klein

"Professional LINQ"

ToInt32(cboProductCategory.SelectedValue);
ProdQuery.ManufacturerID = Convert.ToInt32(cboManufacturer.SelectedValue);
prodQuery.ManufacturerSKU = txtManufacturerSKU.Text;
prodQuery.Length = Convert.ToDecimal(txtLength.Text);
prodQuery.Width = Convert.ToDecimal(txtWidth.Text);
prodQuery.Depth = Convert.ToDecimal(txtDepth.Text);
prodQuery.Height = Convert.ToDecimal(txtHeight.Text);
prodQuery.Cost = decimal.Parse(this.txtCost.Text,
System.Globalization.NumberStyles.Currency);
prodQuery.Price = decimal.Parse(this.txtPrice.Text,
System.Globalization.NumberStyles.Currency);
prodQuery.QuantityOnHand = Convert.ToInt32(this.txtQuantity.Text);
}
context.SubmitChanges();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message.ToString());
}
Next you need to put code behind the New, Edit, and Delete buttons on the SelectProduct form that
will utilize the new ProductMain form. Open the SelectProduct form and add the following code to the
cmdNew button??™s Click() event.
ProductMain prod = new ProductMain();
prod.Show();
This code opens the ProductMain form ready to add a new record.


Pages:
483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6