using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace BizHawk.Client.EmuHawk { public class LuaDropDown : ComboBox { public LuaDropDown(ICollection items) { Items.AddRange(items.Cast().ToArray()); SelectedIndex = 0; DropDownStyle = ComboBoxStyle.DropDownList; } public void SetItems(ICollection items) { Items.Clear(); Items.AddRange(items.Cast().ToArray()); SelectedIndex = 0; } } }