Exemplo n.º 1
0
 private void SalesUi_Load(object sender, EventArgs e)
 {
     categoryComboBox.DataSource = _salesManager.CategoryCombo();
     categoryComboBox.Text       = "-Select-";
     productComboBox.DataSource  = _salesManager.ProductCombo();
     productComboBox.Text        = "-Select-";
     customerComboBox.DataSource = _salesManager.CustomerCombo();
     customerComboBox.Text       = "-Select-";
 }
 private void SalesModuleUI_Load(object sender, EventArgs e)
 {
     customerComboBox.DataSource    = _salesManager.CustomerCombo();
     loyaltyPointTextBox.Text       = customerComboBox.SelectedValue.ToString();
     categoryComboBox.DataSource    = null;
     categoryComboBox.DataSource    = _salesManager.categoryCombo();
     categoryComboBox.DisplayMember = "Name";
     categoryComboBox.ValueMember   = "Code";
 }