public override Control Create(IExecutionContext context) { string absoluteValue = context.GetStringFrom((string)Value); _control = new Editors.TextEditor(Caption, absoluteValue, 0, "", null, null); return(_control); }
public override Control GetEditor(object value, string propertyName, PackageBody body, PropertyChangedDelegate onChange, PropertyActivatedDelegate onActivate) { Control control; if (Multiline) { control = new Editors.MultilineTextEditor(Name, (string)value, MaxLength, propertyName, onChange, onActivate); } else { control = new Editors.TextEditor(Name, (string)value, MaxLength, propertyName, onChange, onActivate); } return control; }
public override Control GetEditor(object value, string propertyName, PackageBody body, PropertyChangedDelegate onChange, PropertyActivatedDelegate onActivate) { Control control; if (Multiline) { control = new Editors.MultilineTextEditor(Name, (string)value, MaxLength, propertyName, onChange, onActivate); } else { control = new Editors.TextEditor(Name, (string)value, MaxLength, propertyName, onChange, onActivate); } return(control); }