Skip to content

Commit

Permalink
Add textbox attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
rcktrncn committed Aug 2, 2021
1 parent a422c9f commit feb1a47
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions taskt/Core/Automation/Attributes/Attributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,24 @@ public PropertyShowSampleUsageInDescription(bool opt)
}
}
[System.AttributeUsage(AttributeTargets.Property)]
public sealed class PropertyTextBoxSetting : System.Attribute
{
public int height = 1;
public bool allowNewLine = true;
public PropertyTextBoxSetting(int height = 1, bool allowNewLine = true)
{
if (height < 0)
{
this.height = 1;
}
else
{
this.height = height;
}
this.allowNewLine = allowNewLine;
}
}
[System.AttributeUsage(AttributeTargets.Property)]
public sealed class PropertyDataGridViewSetting : System.Attribute
{
public bool allowAddRow = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public class ExcelSetCellRCCommand : ScriptCommand
[Attributes.PropertyAttributes.SampleUsage("**myInstance** or **{{{vInstance}}}**")]
[Attributes.PropertyAttributes.Remarks("Failure to enter the correct instance name or failure to first call **Create Excel** command will cause an error")]
[Attributes.PropertyAttributes.PropertyUIHelper(Attributes.PropertyAttributes.PropertyUIHelper.UIAdditionalHelperType.ShowVariableHelper)]
[Attributes.PropertyAttributes.PropertyTextBoxSetting(1, false)]
public string v_InstanceName { get; set; }
[XmlAttribute]
[Attributes.PropertyAttributes.PropertyDescription("Please Enter text to set (ex. Hello, {{{vText}}})")]
Expand Down

0 comments on commit feb1a47

Please sign in to comment.