public frmCustomer() { InitializeComponent(); _customer = new Customer(); _blnReadOnly = false; populateEmployeeCombo(); }
public frmCustomer(long pLongID) { InitializeComponent(); _customer = new Customer(pLongID); mnuSave.Enabled = true; mnuDelete.Enabled = true; mnuWindow.Enabled = true; populateEmployeeCombo(); displayRecord(); }
public frmCustomer(long pLongID, Boolean pBlnReadOnly) { InitializeComponent(); _customer = new Customer(pLongID); _blnReadOnly = pBlnReadOnly; populateEmployeeCombo(); displayRecord(); OrganizeMenuButtons(); }
public frm_Customers(long pLongID, Boolean pblnCanWrite) { InitializeComponent(); _customer = new Customer(pLongID); _validate = new Validate(); tsi_save.Enabled = pblnCanWrite; populateSaleManangersComboBox(); displayRecord(); }
public frm_Customers(Boolean pblnCanWrite) { InitializeComponent(); this.Text = "New " + this.Text; _customer = new Customer(); _validate = new Validate(); tsi_save.Enabled = pblnCanWrite; populateSaleManangersComboBox(); }
public frmCustomer() { InitializeComponent(); _customer = new Customer(); populateEmployeeCombo(); }
private void cbo_customer_SelectedIndexChanged(object sender, EventArgs e) { int test = cbo_customer.SelectedIndex; if (cbo_customer.SelectedIndex > 0) { Customer customer = new Customer(Int32.Parse(cbo_customer.SelectedValue.ToString())); update_dgvCustomerDetails(customer); _customer = customer; } }
/// <summary> /// Description:Updates the datagrid view with data related to the selected Customer /// </summary> /// <param name="customer"></param> private void update_dgvCustomerDetails(Customer customer) { dgv_CustomerDetails.Rows.Clear(); dgv_customerAddress.Rows.Clear(); dgv_CustomerDetails.Rows.Add("Name:", customer.Name); dgv_CustomerDetails.Rows.Add("Phone No:", customer.PhoneNumber); dgv_CustomerDetails.Rows.Add("Contact Person:", customer.ContactPerson); dgv_customerAddress.Rows.Add("Building No:", customer.BuildingNumber); dgv_customerAddress.Rows.Add("Street:", customer.StreetName); dgv_customerAddress.Rows.Add("Suburb:", customer.Suburb); dgv_customerAddress.Rows.Add("State:", customer.State); dgv_customerAddress.Rows.Add("Postcode:", customer.Postcode); }
private void vts_Customer_Search_Click(object sender, EventArgs e) { if (!isDenied("frm_Customers")) { Customer _customer = new Customer(); frm_Search _search = new frm_Search(_customer.cusomerDataSet, "Customer", canWrite("frm_Customers")); _search.MdiParent = this; _search.Show(); } else MessageBox.Show("Access denied. Contact network administrator to gain access"); }