public frmProduct(long pLongID) { InitializeComponent(); _product = new Product(pLongID); mnuSave.Enabled = true; mnuDelete.Enabled = true; mnuWindow.Enabled = true; displayRecord(); }
public frm_Product(long pLongID, Boolean pblnCanWrite) { InitializeComponent(); tsi_save.Enabled = pblnCanWrite; _product = new Product(pLongID); _validate = new Validate(); displayRecord(); }
public frmProduct(long pLongID, Boolean pBlnReadOnly) { InitializeComponent(); _product = new Product(pLongID); _blnReadOnly = pBlnReadOnly; displayRecord(); OrganizeMenuButtons(); }
public frm_Product(Boolean pblnCanWrite) { InitializeComponent(); tsi_save.Enabled = pblnCanWrite; _product = new Product(); this.Text = "New " + this.Text; _validate = new Validate(); }
private void cboProduct_Leave(object sender, EventArgs e) { if (!cboProduct.Text.Equals(string.Empty)) { Product _product = new Product(long.Parse(cboProduct.SelectedIndex.ToString())); txtPrice.Text = _product.Price.ToString(); } }
public frmProduct() { InitializeComponent(); _product = new Product(); }
public frmProduct() { InitializeComponent(); _product = new Product(); _blnReadOnly = false; }
private void cbo_products_SelectedIndexChanged(object sender, EventArgs e) { Product product = new Product(Int32.Parse(cbo_products.SelectedValue.ToString())); _product = product; txt_procePer.Text = product.Price.ToString(); }
private void cboProduct_SelectedValueChanged(object sender, EventArgs e) { Product _product = new Product(long.Parse(cboProduct.SelectedIndex.ToString())); txtPrice.Text = _product.Price.ToString(); }
private void vts_Product_Search_Click(object sender, EventArgs e) { if (!isDenied("frm_Product")) { Product product = new Product(); frm_Search frmsearch = new frm_Search(product.productDataSet, "Product", canWrite("frm_Product")); frmsearch.MdiParent = this; frmsearch.Show(); } else MessageBox.Show("Access denied. Contact network administrator to gain access"); }