Skip to content

Commit d4b4e10

Browse files
couple of small beauty changes
1 parent c30f5ec commit d4b4e10

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

QAction_66/QAction_66.cs

+8-8
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ public static class ParameterDiscreetValues
1010
public enum ViewPageControl
1111
{
1212
Show = 1,
13-
Hide = 2
13+
Hide = 2,
1414
}
1515

1616
public enum LockedValues
1717
{
1818
Locked = 1,
19-
Unlocked = 2
19+
Unlocked = 2,
2020
}
2121
}
2222

@@ -41,10 +41,10 @@ public void Run(SLProtocol protocol)
4141
case Parameter.Write.routercontroloutputsserializedsets_1161:
4242
_matrixStorage.GetMatrix(protocol).ProcessParameterSetFromUI(protocol, triggerParameter);
4343
break;
44-
case Parameter.Routersysleveloutputs.tablePid: // table 1200
44+
case Parameter.Routersysleveloutputs.tablePid: // table 1200
4545
ProcessOutputData(protocol);
4646
break;
47-
case Parameter.Routersyslevelinputs.tablePid: // table 1300
47+
case Parameter.Routersyslevelinputs.tablePid: // table 1300
4848
ProcessInputData(protocol);
4949
break;
5050
case Parameter.routersysleveltakenextwritebufferitem_1404:
@@ -59,21 +59,21 @@ public void Run(SLProtocol protocol)
5959
}
6060
catch (Exception ex)
6161
{
62-
protocol.Log("QA" + protocol.QActionID + "|" + Convert.ToString(triggerParameter) + "|Run|Exception " + Convert.ToString(ex), LogType.Error, LogLevel.NoLogging);
62+
protocol.Log($"QA{protocol.QActionID}|{Convert.ToString(triggerParameter)}|Run|Exception {Convert.ToString(ex)}", LogType.Error, LogLevel.NoLogging);
6363
}
6464
}
6565

6666
private static bool TryGetConnectedInput(SLProtocol protocol, int displayedInputs, object connectedInput, int output, out int input)
6767
{
6868
if (!Int32.TryParse(Convert.ToString(connectedInput), out input))
6969
{
70-
protocol.Log("QA" + protocol.QActionID + "|Output index: " + Convert.ToString(output + 1) + " is connected to an input that can't be converted to a number: " + Convert.ToString(connectedInput), LogType.Error, LogLevel.NoLogging);
70+
protocol.Log($"QA{protocol.QActionID}|Output index: {Convert.ToString(output + 1)} is connected to an input that can't be converted to a number: {Convert.ToString(connectedInput)}", LogType.Error, LogLevel.NoLogging);
7171
return false;
7272
}
7373

7474
if (input < 0 && input > displayedInputs)
7575
{
76-
protocol.Log("QA" + protocol.QActionID + "|Output index: " + Convert.ToString(output + 1) + " is connected to an input that is out of range: " + Convert.ToString(connectedInput) + " maximum known input is " + Convert.ToString(displayedInputs), LogType.Error, LogLevel.NoLogging);
76+
protocol.Log($"QA{protocol.QActionID}|Output index: {Convert.ToString(output + 1)} is connected to an input that is out of range: {Convert.ToString(connectedInput)} maximum known input is {Convert.ToString(displayedInputs)}", LogType.Error, LogLevel.NoLogging);
7777
return false;
7878
}
7979

@@ -87,7 +87,7 @@ private static bool TryGetLock(SLProtocol protocol, object lockedValue, int inde
8787
int lockType;
8888
if (!Int32.TryParse(Convert.ToString(lockedValue), out lockType))
8989
{
90-
protocol.Log("QA" + protocol.QActionID + "|Provided locked value " + Convert.ToString(lockedValue) + " can't be converted to a number for " + (isInput ? "input " : "output ") + Convert.ToString(index + 1), LogType.Error, LogLevel.NoLogging);
90+
protocol.Log($"QA{protocol.QActionID}|Provided locked value {Convert.ToString(lockedValue)} can't be converted to a number for {(isInput ? "input " : "output ")}{Convert.ToString(index + 1)}", LogType.Error, LogLevel.NoLogging);
9191
return false;
9292
}
9393

0 commit comments

Comments
 (0)