private void CreateEditors()
{
foreach (PropertyGridParameter parameter in this.Source)
{
if (parameter.Editor.Count == 0)
{
continue;
}
Field editor = parameter.Editor.Editor;
editor.Visible = false;
editor.EnableViewState = false;
if (!this.Controls.Contains(editor))
{
this.Controls.Add(editor);
}
if (!this.LazyItems.Contains(editor))
{
this.LazyItems.Add(editor);
}
}
}