Example #1
0
        private void LoadServerGroups()
        {
            try
            {
                cbServerGroup.Items.Clear();

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

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

            catch
            {
                throw;
            }
        }