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