19 lines
380 B
C#
19 lines
380 B
C#
|
|
namespace Substation;
|
||
|
|
|
||
|
|
static class Program
|
||
|
|
{
|
||
|
|
public const int Port = 8765;
|
||
|
|
|
||
|
|
[STAThread]
|
||
|
|
static void Main()
|
||
|
|
{
|
||
|
|
ApplicationConfiguration.Initialize();
|
||
|
|
|
||
|
|
using var device = new CoyoteDevice();
|
||
|
|
var state = new State();
|
||
|
|
var server = new Server(device, state, Port);
|
||
|
|
|
||
|
|
Application.Run(new MainForm(device, state, server));
|
||
|
|
}
|
||
|
|
}
|