mirror of
https://github.com/milimoe/FunGame-Testing.git
synced 2025-04-24 05:09:34 +08:00
26 lines
626 B
C#
26 lines
626 B
C#
namespace Milimoe.FunGame.Testing.Desktop.Solutions
|
|
{
|
|
public partial class ShowList : Form
|
|
{
|
|
public string SelectItem { get; set; } = "";
|
|
|
|
public ShowList()
|
|
{
|
|
InitializeComponent();
|
|
Text = "双击选择一项";
|
|
}
|
|
|
|
public void AddListItem(object[] items)
|
|
{
|
|
选择表.Items.Clear();
|
|
选择表.Items.AddRange(items);
|
|
}
|
|
|
|
private void 选择表_MouseDoubleClick(object sender, EventArgs e)
|
|
{
|
|
SelectItem = 选择表.SelectedItem?.ToString() ?? "";
|
|
Dispose();
|
|
}
|
|
}
|
|
}
|