2023-09-13 18:53:06 +04:00
|
|
|
|
namespace WinForms
|
|
|
|
|
{
|
|
|
|
|
public partial class Form1 : Form
|
|
|
|
|
{
|
2023-09-15 19:31:01 +04:00
|
|
|
|
List<string> list = new List<string>();
|
2023-09-13 18:53:06 +04:00
|
|
|
|
public Form1()
|
|
|
|
|
{
|
2023-09-15 19:31:01 +04:00
|
|
|
|
list = new List<string>();
|
|
|
|
|
list.AddRange(new string[] { "<22><><EFBFBD><EFBFBD>", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" });
|
2023-09-13 18:53:06 +04:00
|
|
|
|
InitializeComponent();
|
2023-09-15 19:31:01 +04:00
|
|
|
|
dropDownList.LoadValues(new List<string>() { "<22><><EFBFBD>", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", "<22><><EFBFBD>" });
|
|
|
|
|
}
|
|
|
|
|
private void buttonAdd_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
dropDownList.LoadValues(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void buttonInfo_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
labelInfo.Text = dropDownList.SelectedValue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void buttonClear_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
dropDownList.Clear();
|
2023-09-13 18:53:06 +04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|