public Form1() { InitializeComponent(); if (Variables.config == null) { Variables.config = new MotorConfig(); Variables.config.readconfig("config.txt"); } //System.Threading.Thread t1 = new System.Threading.Thread( receiveLoop ); // t1.Start(); //Create delegate to change Form inputs addDeviceDelegate = new AddDevicesDelegate(AddDevicesMethod); }
public Form1() { InitializeComponent(); if (Variables.config == null) { Variables.config = new MotorConfig(); Variables.config.readconfig("config.txt"); } btnDisconnect.Enabled = false; btnConnect.Enabled = false; //Create delegate to change Form inputs addDeviceDelegate = new AddDevicesDelegate(AddDevicesMethod); }