/// <summary> /// Multi-line text control parameter. /// </summary> /// <param name="Name">Parameter name.</param> /// <param name="Page">On which page in the control dialog the parameter should appear.</param> /// <param name="Label">Label for parameter.</param> /// <param name="Description">Description for parameter.</param> /// <param name="RegularExpression">Regular expression used to validate string.</param> /// <param name="GetHandler">This callback method is called when the value of the parameter is needed.</param> /// <param name="SetHandler">This callback method is called when the value of the parameter is set.</param> public MultiLineTextControlParameter(string Name, string Page, string Label, string Description, string RegularExpression, StringGetHandler GetHandler, StringSetHandler SetHandler) : base(Name, Page, Label, Description) { this.getHandler = GetHandler; this.setHandler = SetHandler; this.regexString = RegularExpression; this.regex = new Regex(RegularExpression, RegexOptions.Compiled | RegexOptions.Singleline); }
/// <summary> /// Multi-line text control parameter. /// </summary> /// <param name="Name">Parameter name.</param> /// <param name="Page">On which page in the control dialog the parameter should appear.</param> /// <param name="Label">Label for parameter.</param> /// <param name="Description">Description for parameter.</param> /// <param name="GetHandler">This callback method is called when the value of the parameter is needed.</param> /// <param name="SetHandler">This callback method is called when the value of the parameter is set.</param> public MultiLineTextControlParameter(string Name, string Page, string Label, string Description, StringGetHandler GetHandler, StringSetHandler SetHandler) : base(Name, Page, Label, Description) { this.getHandler = GetHandler; this.setHandler = SetHandler; this.regexString = null; this.regex = null; }
/// <summary> /// String control parameter. /// </summary> /// <param name="Name">Parameter name.</param> /// <param name="Page">On which page in the control dialog the parameter should appear.</param> /// <param name="Label">Label for parameter.</param> /// <param name="Description">Description for parameter.</param> /// <param name="Options">Options the user can choose from.</param> /// <param name="Labels">Labels for the corresponding options.</param> /// <param name="GetHandler">This callback method is called when the value of the parameter is needed.</param> /// <param name="SetHandler">This callback method is called when the value of the parameter is set.</param> public StringControlParameter(string Name, string Page, string Label, string Description, string[] Options, string[] Labels, StringGetHandler GetHandler, StringSetHandler SetHandler) : base(Name, Page, Label, Description) { this.getHandler = GetHandler; this.setHandler = SetHandler; this.regexString = null; this.regex = null; this.options = Options; this.labels = Labels; }
/// <summary> /// String control parameter. /// </summary> /// <param name="Name">Parameter name.</param> /// <param name="Page">On which page in the control dialog the parameter should appear.</param> /// <param name="Label">Label for parameter.</param> /// <param name="Description">Description for parameter.</param> /// <param name="Options">Options the user can choose from.</param> /// <param name="GetHandler">This callback method is called when the value of the parameter is needed.</param> /// <param name="SetHandler">This callback method is called when the value of the parameter is set.</param> public StringControlParameter(string Name, string Page, string Label, string Description, string[] Options, StringGetHandler GetHandler, StringSetHandler SetHandler) : this(Name, Page, Label, Description, Options, null, GetHandler, SetHandler) { }