예제 #1
0
 public frmProduct(long pLongID)
 {
     InitializeComponent();
     _product = new Product(pLongID);
     mnuSave.Enabled = true; mnuDelete.Enabled = true; mnuWindow.Enabled = true;
     displayRecord();
 }
예제 #2
0
 public frm_Product(long pLongID, Boolean pblnCanWrite)
 {
     InitializeComponent();
     tsi_save.Enabled = pblnCanWrite;
     _product = new Product(pLongID);
     _validate = new Validate();
     displayRecord();
 }
예제 #3
0
 public frmProduct(long pLongID, Boolean pBlnReadOnly)
 {
     InitializeComponent();
     _product = new Product(pLongID);
     _blnReadOnly = pBlnReadOnly;
     displayRecord();
     OrganizeMenuButtons();
 }
예제 #4
0
 public frm_Product(Boolean pblnCanWrite)
 {
     InitializeComponent();
     tsi_save.Enabled = pblnCanWrite;
     _product = new Product();
     this.Text = "New " + this.Text;
     _validate = new Validate();
 }
예제 #5
0
 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();
     }
 }
예제 #6
0
 public frmProduct()
 {
     InitializeComponent();
     _product = new Product();
 }
예제 #7
0
 public frmProduct()
 {
     InitializeComponent();
     _product = new Product();
     _blnReadOnly = false;
 }
예제 #8
0
 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();
 }
예제 #9
0
 private void cboProduct_SelectedValueChanged(object sender, EventArgs e)
 {
     Product _product = new Product(long.Parse(cboProduct.SelectedIndex.ToString()));
     txtPrice.Text = _product.Price.ToString();
 }
예제 #10
0
 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");
 }