Skip to content

Commit

Permalink
SonarQube updates
Browse files Browse the repository at this point in the history
  • Loading branch information
SK21 committed Dec 1, 2024
1 parent 2de2ac6 commit ecd1fa8
Show file tree
Hide file tree
Showing 21 changed files with 24 additions and 39 deletions.
2 changes: 1 addition & 1 deletion RateAppSource/RateController/Classes/UDPcomm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public string NetworkEP
set
{
string[] data;
if (IPAddress.TryParse(value, out IPAddress IP))
if (IPAddress.TryParse(value, out _))
{
data = value.Split('.');
cNetworkEP = IPAddress.Parse(data[0] + "." + data[1] + "." + data[2] + ".255");
Expand Down
3 changes: 1 addition & 2 deletions RateAppSource/RateController/Classes/clsAlarm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ public void CheckAlarms()

if (cRateAlarm )
{
cMessage = "Alarm";
if (cRateAlarm) cMessage = "Rate " + cMessage;
cMessage = "Rate Alarm";
cAlarmButton.Text = cMessage;

if (cSilenceAlarm)
Expand Down
10 changes: 1 addition & 9 deletions RateAppSource/RateController/Classes/clsProduct.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ public class clsProduct
private int cCountsRev;
private bool cEnabled = true;
private bool cEnableProdDensity = false;
private bool cEraseAccumulatedUnits = false;
private bool cFanOn;
private double cHectaresPerMinute;
private double cHours1;
Expand Down Expand Up @@ -189,14 +188,7 @@ public bool Enabled
public bool EnableProdDensity
{ get { return cEnableProdDensity; } set { cEnableProdDensity = value; } }

public bool EraseAccumulatedUnits
{
get { return cEraseAccumulatedUnits; }
set
{
cEraseAccumulatedUnits = value;
}
}
public bool EraseAccumulatedUnits { get; set; }

public bool FanOn
{
Expand Down
2 changes: 1 addition & 1 deletion RateAppSource/RateController/PGNs/PGN32296.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public class PGN32296
private const byte HeaderHi = 126;
private const byte HeaderLo = 40;
private readonly FormStart mf;
private byte cProductID;
private double[] cValue = new double[4];

public PGN32296(FormStart CalledFrom)
Expand All @@ -24,6 +23,7 @@ public PGN32296(FormStart CalledFrom)

public bool ParseStringData(string Sentence)
{
byte cProductID;
bool Result = false;
try
{
Expand Down
6 changes: 3 additions & 3 deletions RateAppSource/RateController/PGNs/PGN32401.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public PGN32401(FormStart CalledFrom)
GoodPinsLast = new bool[mf.MaxModules];
}

public event EventHandler<PinStatusArgs> PinStatusChanged;
public event EventHandler<PinStatusEventArgs> PinStatusChanged;

public bool Connected(int Module)
{
Expand Down Expand Up @@ -172,7 +172,7 @@ public void UpdateActivity()
}
mf.Tls.WriteActivityLog(Mes, false, true);

PinStatusArgs args = new PinStatusArgs();
PinStatusEventArgs args = new PinStatusEventArgs();
args.GoodPins = cGoodPins[i];
args.Module = i;
PinStatusChanged?.Invoke(this, args);
Expand Down Expand Up @@ -200,7 +200,7 @@ public bool WorkSwitchOn()
return Result;
}

public class PinStatusArgs : EventArgs
public class PinStatusEventArgs : EventArgs
{
public bool GoodPins { get; set; }
public int Module { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion RateAppSource/RateController/frmModuleConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public frmModuleConfig(FormStart Main)
}
}

private void ArduinoModule_PinStatusChanged(object sender, PGN32401.PinStatusArgs e)
private void ArduinoModule_PinStatusChanged(object sender, PGN32401.PinStatusEventArgs e)
{
if (!e.GoodPins) mf.Tls.ShowHelp("Pin configuration for Module" + e.Module.ToString() + " not correct. Using default values.");
}
Expand Down
32 changes: 16 additions & 16 deletions RateAppSource/RateController/frmOptions.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions RateAppSource/RateController/frmOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -609,12 +609,6 @@ private void groupBox1_Paint(object sender, PaintEventArgs e)
mf.Tls.DrawGroupBox(box, e.Graphics, this.BackColor, Color.Black, Color.Blue);
}

private void groupBox2_Paint(object sender, PaintEventArgs e)
{
GroupBox box = sender as GroupBox;
mf.Tls.DrawGroupBox(box, e.Graphics, this.BackColor, Color.Black, Color.Blue);
}

private void tbPressureCal_Enter(object sender, EventArgs e)
{
double tempD;
Expand Down
Binary file not shown.
Binary file not shown.
Binary file modified RateAppSource/RateController/obj/Debug/RateController.exe
Binary file not shown.
Binary file modified RateAppSource/RateController/obj/Debug/RateController.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified RateControllerApp/RateController.exe
Binary file not shown.
Binary file modified RateControllerApp/de/RateController.resources.dll
Binary file not shown.
Binary file modified RateControllerApp/fr/RateController.resources.dll
Binary file not shown.
Binary file modified RateControllerApp/hu/RateController.resources.dll
Binary file not shown.
Binary file modified RateControllerApp/nl/RateController.resources.dll
Binary file not shown.
Binary file modified RateControllerApp/pl/RateController.resources.dll
Binary file not shown.
Binary file modified RateControllerApp/ru/RateController.resources.dll
Binary file not shown.

0 comments on commit ecd1fa8

Please sign in to comment.