public frmFlasher(AVRDude dude) { InitializeComponent(); availablePorts = new Ports(); //Create RS232 port interface availablePorts.ScanDevices(portScan_RunCompleted); avrDude = dude; }
//Re-scan ports when the Ports dropdown is opened private void cbxPort_DropDown(object sender, EventArgs e) { cbxPort.Enabled = false; cbxPort.Items.Clear(); cbxPort.Text = "Scanning.."; availablePorts.ScanDevices(portScan_RunCompleted); }
public serialControl() { InitializeComponent(); availablePorts = new Ports(); //Create RS232 port interface availablePorts.ScanDevices(portScan_RunCompleted); cbxBaud.Text = Properties.Settings.Default.baudRate; Font = new Font("Microsoft Sans Serif", 8.25f); //prevent switch to Segoe UI }