示例#1
0
 public frmFlasher(AVRDude dude)
 {
     InitializeComponent();
     availablePorts = new Ports();   //Create RS232 port interface
     availablePorts.ScanDevices(portScan_RunCompleted);
     avrDude = dude;
 }
示例#2
0
 //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);
 }
示例#3
0
 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
 }