private void getLongestName()
{
if (this.Options == null)
return;
for (int counter = 0; counter < this.Options.Length; counter++)
{
this.checkBox1.Text = this.Options[counter].name;
if (this.checkBox1.PreferredSize.Width>this.optionNamePadding)
this.optionNamePadding = this.checkBox1.PreferredSize.Width+5;
}
}