Exemplo n.º 1
0
 public frm_RawIngredients(long pLongID, Boolean pblnCanWrite)
 {
     InitializeComponent();
     tsi_save.Enabled = pblnCanWrite;
     _rawIngredient = new RawIngredient(pLongID);
     populateSupplierComboBox();
     displayRecord();
     _validate = new Validate();
 }
Exemplo n.º 2
0
 public frm_RawIngredients(Boolean pblnCanWrite)
 {
     InitializeComponent();
     tsi_save.Enabled = pblnCanWrite;
     _rawIngredient = new RawIngredient();
     this.Text = "New " + this.Text;
     _validate = new Validate();
     populateSupplierComboBox();
 }
Exemplo n.º 3
0
 private void cbo_products_SelectedIndexChanged(object sender, EventArgs e)
 {
     long temp = 0;
     if (long.TryParse(cbo_products.SelectedValue.ToString(), out temp))
     {
         RawIngredient tempRawIngredient = new RawIngredient(temp);
         txt_procePer.Text = tempRawIngredient.Price.ToString();
     }
 }
Exemplo n.º 4
0
 private void vts_RawIngredients_Search_Click(object sender, EventArgs e)
 {
     if (!isDenied("frm_RawIngredients"))
     {
         RawIngredient ring = new RawIngredient();
         frm_Search frmsearch = new frm_Search(ring.ingredientDataSet, "RawIngredient", canWrite("frm_RawIngredients"));
         frmsearch.MdiParent = this;
         frmsearch.Show();
     }
     else
         MessageBox.Show("Access denied. Contact network administrator to gain access");
 }