Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }