Example #1
0
        public MainForm()
        {
            InitializeComponent();

            DebugDevice = new BoardDevice();
            network = new NetworkController(DebugDevice);

            network.Error += delegate(object s)
            {
                ConnectionNotify ErrorFunc = ConnectionError;
                BeginInvoke(ErrorFunc);
            };

            network.ConnectionSuccess += delegate(object s)
            {
                ConnectionNotify SuccessFunc = ConnectionSucceeded;
                BeginInvoke(SuccessFunc);
            };

            log = new LogWindow();
            log.Show();
            log.Hide();

            PopulateCableDropdown();
        }
Example #2
0
        public MainForm()
        {
            InitializeComponent();

            DebugDevice = new BoardDevice();
            network     = new NetworkController(DebugDevice);

            network.Error += delegate(object s)
            {
                ConnectionNotify ErrorFunc = ConnectionError;
                BeginInvoke(ErrorFunc);
            };

            network.ConnectionSuccess += delegate(object s)
            {
                ConnectionNotify SuccessFunc = ConnectionSucceeded;
                BeginInvoke(SuccessFunc);
            };

            log = new LogWindow();
            log.Show();
            log.Hide();

            PopulateCableDropdown();
        }