Skip to content

Commit 47b6b41

Browse files
author
Mohammed Bhatti
committed
Fixed minor typos and cleaned up code
1 parent 975f789 commit 47b6b41

5 files changed

+6
-9
lines changed

taskt/Core/Automation/Commands/ExcelAppendCellCommand.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace taskt.Core.Automation.Commands
1212
[Attributes.ClassAttributes.Group("Excel Commands")]
1313
[Attributes.ClassAttributes.Description("Append input to last row of sheet into the first cell.")]
1414
[Attributes.ClassAttributes.UsesDescription("Use this command when you want to set a value to the last cell.")]
15-
[Attributes.ClassAttributes.ImplementationDescription("This command implements Excel Interop to achieve automations.")]
15+
[Attributes.ClassAttributes.ImplementationDescription("")]
1616
public class ExcelAppendCellCommand : ScriptCommand
1717
{
1818
[XmlAttribute]
@@ -67,14 +67,13 @@ public override List<Control> Render(frmCommandEditor editor)
6767
//create standard group controls
6868
RenderedControls.AddRange(CommandControls.CreateDefaultInputGroupFor("v_InstanceName", this, editor));
6969
RenderedControls.AddRange(CommandControls.CreateDefaultInputGroupFor("v_TextToSet", this, editor));
70-
// RenderedControls.AddRange(CommandControls.CreateDefaultInputGroupFor("v_ExcelCellAddress", this, editor));
7170

7271
return RenderedControls;
7372

7473
}
7574
public override string GetDisplayValue()
7675
{
77-
return base.GetDisplayValue() + " [Append Cell '" + "last cell" + "' to '" + v_TextToSet + "', Instance Name: '" + v_InstanceName + "']";
76+
return base.GetDisplayValue() + " [Append last cell to: " + v_TextToSet +"]";
7877
}
7978
}
8079
}

taskt/Core/Automation/Commands/ExcelAppendRowCommand.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public class ExcelAppendRowCommand : ScriptCommand
2525
[XmlAttribute]
2626
[Attributes.PropertyAttributes.PropertyDescription("Please Enter text to set")]
2727
[Attributes.PropertyAttributes.PropertyUIHelper(Attributes.PropertyAttributes.PropertyUIHelper.UIAdditionalHelperType.ShowVariableHelper)]
28-
[Attributes.PropertyAttributes.InputSpecification("Enter the text value that will be set.")]
29-
[Attributes.PropertyAttributes.SampleUsage("Hello World or [vText]")]
28+
[Attributes.PropertyAttributes.InputSpecification("Enter the text value that will be set (This could be a DataRow).")]
29+
[Attributes.PropertyAttributes.SampleUsage("Hello,world or [vText]")]
3030
[Attributes.PropertyAttributes.Remarks("")]
3131
public string v_TextToSet { get; set; }
3232

taskt/Core/Automation/Commands/ExcelGetRangeCommandASDT.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class ExcelGetRangeCommandAsDT : ScriptCommand
4646

4747
public ExcelGetRangeCommandAsDT()
4848
{
49-
this.CommandName = "ExcelGetRangeCommand";
49+
this.CommandName = "ExcelGetRangeCommandAsDT";
5050
this.SelectionName = "Get Range As Datatable";
5151
this.CommandEnabled = true;
5252
this.CustomRendering = true;

taskt/Core/Automation/Commands/ExcelWriteRangeCommand.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class ExcelWriteRangeCommand : ScriptCommand
4040
public string v_ExcelCellAddress { get; set; }
4141
public ExcelWriteRangeCommand()
4242
{
43-
this.CommandName = "ExcelSetCellCommand";
43+
this.CommandName = "ExcelWriteRangeCommand";
4444
this.SelectionName = "Write Range";
4545
this.CommandEnabled = true;
4646
this.CustomRendering = true;

taskt/Core/Automation/Commands/RemoveDataRowCommand.cs

-2
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,6 @@ public override List<Control> Render(frmCommandEditor editor)
163163
RenderedControls.AddRange(CommandControls.CreateDefaultInputGroupFor("v_DataTableName", this, editor));
164164
RenderedControls.AddRange(CommandControls.CreateDefaultInputGroupFor("v_SearchItem", this, editor));
165165
RenderedControls.AddRange(CommandControls.CreateDefaultDropdownGroupFor("v_AndOr", this, editor));
166-
//RenderedControls.Add(CommandControls.CreateDefaultLabelFor("v_AndOr", this));
167-
168166
return RenderedControls;
169167
}
170168

0 commit comments

Comments
 (0)