private void btnOK_Click(object sender, EventArgs e)
{
object[] values = new object[lines];
for (int i = 0; i < textBox1.Lines.Length; i++)
{
string line = textBox1.Lines[i];
values[i] = Convert.ChangeType(line, editor.CollectionItemType);
}
editor.SetItems(value, values);
}
}