2016-12-26 01:43:19 +00:00
|
|
|
|
using System.Collections.Generic;
|
2013-12-15 02:50:50 +00:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
|
|
namespace BizHawk.Client.EmuHawk
|
|
|
|
|
{
|
|
|
|
|
public class LuaDropDown : ComboBox
|
|
|
|
|
{
|
2019-11-30 17:28:56 +00:00
|
|
|
|
public LuaDropDown(ICollection<string> items)
|
2013-12-15 02:50:50 +00:00
|
|
|
|
{
|
|
|
|
|
Items.AddRange(items.Cast<object>().ToArray());
|
|
|
|
|
SelectedIndex = 0;
|
|
|
|
|
DropDownStyle = ComboBoxStyle.DropDownList;
|
|
|
|
|
}
|
2016-12-26 01:43:19 +00:00
|
|
|
|
|
2019-11-30 17:28:56 +00:00
|
|
|
|
public void SetItems(ICollection<string> items)
|
2017-05-19 16:05:21 +00:00
|
|
|
|
{
|
2016-12-26 01:43:19 +00:00
|
|
|
|
Items.Clear();
|
|
|
|
|
Items.AddRange(items.Cast<object>().ToArray());
|
|
|
|
|
SelectedIndex = 0;
|
|
|
|
|
}
|
2013-12-15 02:50:50 +00:00
|
|
|
|
}
|
|
|
|
|
}
|