コード例 #1
0
        public override Control Create(IExecutionContext context)
        {
            string absoluteValue = context.GetStringFrom((string)Value);

            _control = new Editors.TextEditor(Caption, absoluteValue, 0, "", null, null);
            return(_control);
        }
コード例 #2
0
 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;
 }
コード例 #3
0
        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);
        }