-
Notifications
You must be signed in to change notification settings - Fork 1
/
Program.cs
36 lines (34 loc) · 956 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//+--------------------------------------------------------------------------
//
// NightDriver.Net - (c) 2019 Dave Plummer. All Rights Reserved.
//
// File: Program.cs
//
// Description:
//
// A WinForms app that hosts a server that can be used to control LED strips
// via a network connection.
//
// History: Dec-23-2023 Davepl Created
//
//---------------------------------------------------------------------------
namespace NightDriver
{
internal static class Program
{
[STAThread]
static void Main()
{
ApplicationConfiguration.Initialize();
Application.Run(new MainForm());
}
}
public static class StringExtensions
{
public static bool IsInRange(this string str, int low, int high, out int number)
{
number = 0;
return int.TryParse(str, out number) && number >= low && number <= high;
}
}
}