public frm_Suppliers(Boolean pblnCanWrite) { InitializeComponent(); tsi_save.Enabled = pblnCanWrite; this.Text = "New " + this.Text; _supplier = new Supplier(); _validate = new Validate(); }
public frmSupplier(long pLongID, Boolean pBlnReadOnly) { InitializeComponent(); _supplier = new Supplier(pLongID); _blnReadOnly = pBlnReadOnly; displayRecord(); OrganizeMenuButtons(); }
public frm_Suppliers(long pLongID, Boolean pblnCanWrite) { InitializeComponent(); tsi_save.Enabled = pblnCanWrite; _supplier = new Supplier(pLongID); _validate = new Validate(); displayRecord(); }
public frmSupplier(long pLongID) { InitializeComponent(); _supplier = new Supplier(pLongID); mnuSave.Enabled = true; mnuDelete.Enabled = true; mnuWindow.Enabled = true; displayRecord(); }
public frmSupplier() { InitializeComponent(); _supplier = new Supplier(); _blnReadOnly = false; }
private void cbo_supplier_SelectedIndexChanged(object sender, EventArgs e) { long temp = 0; if (long.TryParse(cbo_supplier.SelectedValue.ToString(), out temp)) { Supplier tempSupplier = new Supplier(temp); populateRawIngredientsComboBox(temp); update_dgvSupplierDetails(tempSupplier); } }
/// <summary> ///Description:Updates the datagrid view with data related to the selected Supplier /// </summary> /// <param name="supplier"></param> private void update_dgvSupplierDetails(Supplier supplier) { dgv_supplierDetails.Rows.Clear(); dgv_supplierAddress.Rows.Clear(); dgv_supplierDetails.Rows.Add("Name:", supplier.Name); dgv_supplierDetails.Rows.Add("Phone No:", supplier.PhoneNumber); dgv_supplierDetails.Rows.Add("Contact Person:", supplier.ContactPerson); dgv_supplierAddress.Rows.Add("Building No:", supplier.BuildingNumber); dgv_supplierAddress.Rows.Add("Street:", supplier.StreetName); dgv_supplierAddress.Rows.Add("Suburb:", supplier.Suburb); dgv_supplierAddress.Rows.Add("State:", supplier.State); dgv_supplierAddress.Rows.Add("Postcode:", supplier.Postcode); }
private void vts_Supplier_Search_Click(object sender, EventArgs e) { if (!isDenied("frm_Suppliers")) { Supplier _supplier = new Supplier(); frm_Search _search = new frm_Search(_supplier.supplierDataset, "Supplier", canWrite("frm_Suppliers")); _search.MdiParent = this; _search.Show(); } else MessageBox.Show("Access denied. Contact network administrator to gain access"); }
public frmSupplier() { InitializeComponent(); _supplier = new Supplier(); }