/// <summary> /// Construction /// </summary> public MainForm() { Hardware = new Hardware(this); VersionData.initVersionData(); AboutForm = new AboutBox(); SettingsObj = new SettingsForm(this); LogFormObj = new LogForm(this); //Create SocketServer obj (even if it wouldn't run) SocketServer = new SocketServerClass(this); //Give a link to it for Harware class Hardware.SocketServer = SocketServer; //Sync consntans SocketServer.MAX_BUFFER_LEN = Hardware.MAX_BUFFER_LEN; InitializeComponent(); }
public ClientManager(SocketServerClass SockSrv) { ParentSocketServer = SockSrv; ParentMainFormLink = ParentSocketServer.ParentMainForm; }