private void InitControls() { List <DatabaseObjectType> dbObjTypes = new List <DatabaseObjectType>() { DatabaseObjectType.Table, DatabaseObjectType.View, DatabaseObjectType.Function, DatabaseObjectType.Procedure }; if (this.DatabaseType == DatabaseType.SqlServer) { dbObjTypes.Insert(0, DatabaseObjectType.UserDefinedType); } foreach (DatabaseObjectType type in dbObjTypes) { this.chkDbObjectTypes.Items.Add(ManagerUtil.GetPluralString(type.ToString())); } }