예제 #1
0
        private void LoadDatabaseNames()
        {
            try
            {
                cbDatabaseName.Items.Clear();

                using (DataStuff sn = new DataStuff())
                {
                    DataTable dt = sn.GetSystemDatabases(ConnectionString);

                    if (dt.Rows.Count > 0)
                    {
                        foreach (DataRow row in dt.Rows)
                        {
                            cbDatabaseName.Items.Add(row["Name"].ToString());
                        }
                    }
                }
            }

            catch
            {
                throw;
            }
        }