protected override void OnCreateControl() { ComboboxUtility.BindBank(this); this.SelectedValueChanged += CboBindBank_SelectedValueChanged; this.SelectedItem = null; base.OnCreateControl(); }
public frmCreateCompany() { InitializeComponent(); _companyBussiness = new CompanyBussiness(); ComboboxUtility.BindBank(cbSelectBank); ComboboxUtility.LoadDataClassCustormer(cbClassCustormer); cbSelectBank.SelectedIndex = -1; txtAddree.Text = string.Empty; cbClassCustormer.DropDownStyle = ComboBoxStyle.DropDownList; }