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); device.StrengthChanged += (a, b) => { state.ActualA = a; state.ActualB = b; }; Application.Run(new MainForm(device, state, server)); } }