void ComboBoxVendorSelectedIndexChanged(object sender, EventArgs e) { Vendor vendor = SwfUtility.GetComboBoxValue <Vendor>(comboBoxVendor); if (vendor != null) { richTextBoxAddress.Text = vendor.Address; } }
void ComboBoxTypeSelectedIndexChanged(object sender, EventArgs e) { ItemType t = SwfUtility.GetComboBoxValue <ItemType>(comboBoxType); if (t != null) { labelType.Text = t.Description; } }
void ComboBoxLegalCountrySelectedIndexChanged(object sender, EventArgs e) { Country c = SwfUtility.GetComboBoxValue <Country>(comboBoxLegalCountry); if (c != null) { SwfUtility.SetupComboBox(comboBoxState, c.States, "Id", "ShortName", company.State); } }