示例#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();
        }
示例#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();
        }
示例#3
0
 private void logButton_Click(object sender, EventArgs e)
 {
     log.Show();
 }