private void cmbInstances_SelectedIndexChanged(object sender, EventArgs e) { BindingSource bs = new BindingSource(); bs.DataSource = DemoMethods.GetDatabaseNames(cmbInstances.SelectedValue.ToString()); cmbDatabases.DataSource = bs; }
public Form1() { InitializeComponent(); BindingSource bs = new BindingSource(); bs.DataSource = DemoMethods.GetInstanceNames(); cmbInstances.DataSource = bs; }