예제 #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();
 }