Skip to content

Commit

Permalink
[MWB] - cleaning up MachineStuff.cs - microsoft#35155
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeclayton committed Jan 17, 2025
1 parent f07e9a2 commit daa6177
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/modules/MouseWithoutBorders/App/Core/MachineStuff.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Drawing;
using System.Globalization;
using System.Linq;
using System.Threading;
using System.Windows.Forms;
Expand All @@ -29,15 +28,17 @@ internal static class MachineStuff
private static readonly Lock McMatrixLock = new();

internal const byte MAX_MACHINE = 4;
internal const byte MAX_SOCKET = MAX_MACHINE * 2;
private const byte MAX_SOCKET = MAX_MACHINE * 2;
internal const long HEARTBEAT_TIMEOUT = 1500000; // 30 Mins
private const int SKIP_PIXELS = 1;
private const int JUMP_PIXELS = 2;

#pragma warning disable SA1307 // Accessible fields should begin with upper-case letter
internal static ID desMachineID;
#pragma warning restore SA1307
#pragma warning disable SA1306 // Field should begin with a lower-case letter
internal static string DesMachineName = string.Empty;
#pragma warning restore SA1306
#pragma warning disable SA1307 // Accessible fields should begin with upper-case letter
internal static ID newDesMachineID;
internal static ID newDesMachineIdEx;
Expand All @@ -59,7 +60,9 @@ internal static MachinePool MachinePool

internal static MyRectangle PrimaryScreenBounds => MachineStuff.primaryScreenBounds;

#pragma warning disable SA1306 // Field should begin with a lower-case letter
internal static MouseLocation SwitchLocation = new();
#pragma warning restore SA1306

internal static ID NewDesMachineID
{
Expand Down

0 comments on commit daa6177

Please sign in to comment.