PIbd-31_PotapovNS_COP_20/WinFormSolution/WinFormsApp/Form.cs

29 lines
764 B
C#
Raw Normal View History

namespace WinFormsApp
{
public partial class Form : System.Windows.Forms.Form
{
public Form()
{
InitializeComponent();
}
private void buttonFillCheckedList_Click(object sender, EventArgs e)
{
List<string> list = new List<string>();
list.Add("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
list.Add("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
list.Add("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
list.Add("<22><><EFBFBD><EFBFBD><EFBFBD>");
list.Add("C#");
userControlCheckedList.SetCheckedListBoxValues(list);
userControlCheckedList.CheckedItem = list[3];
}
private void buttonClearList_Click(object sender, EventArgs e)
{
userControlCheckedList.ClearCheckedListBoxValues();
}
}
}