Skip to content

Commit

Permalink
fix render CheckWindowNameExists
Browse files Browse the repository at this point in the history
  • Loading branch information
rcktrncn committed Jul 29, 2021
1 parent 9b5a2ce commit decd35d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions taskt/Core/Automation/Commands/CheckWindowNameExistsCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ namespace taskt.Core.Automation.Commands
public class CheckWindowNameExistsCommand : ScriptCommand
{
[XmlAttribute]
[Attributes.PropertyAttributes.PropertyDescription("Please enter or select the window that you want to check existence. (ex. Notepad, %kwd_current_window%, {{{vWindow}}})")]
[Attributes.PropertyAttributes.PropertyDescription("Please enter or select the window that you want to check existence.")]
[Attributes.PropertyAttributes.PropertyUIHelper(Attributes.PropertyAttributes.PropertyUIHelper.UIAdditionalHelperType.ShowVariableHelper)]
[Attributes.PropertyAttributes.InputSpecification("Input or Type the name of the window that you want to check existence.")]
[Attributes.PropertyAttributes.SampleUsage("**Untitled - Notepad** or **%kwd_current_window%** or **{{{vWindow}}}**")]
[Attributes.PropertyAttributes.Remarks("")]
[Attributes.PropertyAttributes.PropertyIsWindowNamesList(true)]
[Attributes.PropertyAttributes.PropertyRecommendedUIControl(Attributes.PropertyAttributes.PropertyRecommendedUIControl.RecommendeUIControlType.ComboBox)]
[Attributes.PropertyAttributes.PropertyShowSampleUsageInDescription(true)]
public string v_WindowName { get; set; }

[XmlAttribute]
Expand Down Expand Up @@ -129,8 +130,14 @@ public override List<Control> Render(frmCommandEditor editor)
//RenderedControls.AddRange(CommandControls.CreateUIHelpersFor("v_UserVariableName", this, new Control[] { VariableNameControl }, editor));
//RenderedControls.Add(VariableNameControl);

RenderedControls.AddRange(UI.CustomControls.CommandControls.CreateDefaultInferenceControlGroupFor("v_WindowName", this, editor));
RenderedControls.AddRange(UI.CustomControls.CommandControls.CreateDefaultInferenceControlGroupFor("v_UserVariableName", this, editor));
//RenderedControls.AddRange(UI.CustomControls.CommandControls.CreateInferenceDefaultControlGroupFor("v_WindowName", this, editor));
//RenderedControls.AddRange(UI.CustomControls.CommandControls.CreateInferenceDefaultControlGroupFor("v_UserVariableName", this, editor));

RenderedControls.AddRange(
UI.CustomControls.CommandControls.MultiCreateInferenceDefaultControlGroupFor(
new List<string>() { "v_WindowName", "v_UserVariableName" }, this, editor
)
);

return RenderedControls;

Expand Down

0 comments on commit decd35d

Please sign in to comment.