예제 #1
0
        private void cmbInstances_SelectedIndexChanged(object sender, EventArgs e)
        {
            BindingSource bs = new BindingSource();

            bs.DataSource           = DemoMethods.GetDatabaseNames(cmbInstances.SelectedValue.ToString());
            cmbDatabases.DataSource = bs;
        }
예제 #2
0
        public Form1()
        {
            InitializeComponent();

            BindingSource bs = new BindingSource();

            bs.DataSource           = DemoMethods.GetInstanceNames();
            cmbInstances.DataSource = bs;
        }