29 lines
764 B
C#
29 lines
764 B
C#
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("Êàæäûé");
|
|
list.Add("Ïðîãðàììèñò");
|
|
list.Add("Æåëàåò");
|
|
list.Add("Çíàòü");
|
|
list.Add("C#");
|
|
userControlCheckedList.SetCheckedListBoxValues(list);
|
|
|
|
userControlCheckedList.CheckedItem = list[3];
|
|
}
|
|
|
|
private void buttonClearList_Click(object sender, EventArgs e)
|
|
{
|
|
userControlCheckedList.ClearCheckedListBoxValues();
|
|
}
|
|
}
|
|
}
|