示例#1
0
 private void btnFlashing_Click(object sender, EventArgs e)
 {
     if (this.ComportIsExists)
     {
         EspToolDialog d = new EspToolDialog();
         d.PortName = this.CurretPortName;
         d.ShowDialog();
         d.Dispose();
     }
 }
示例#2
0
 private void btnFlashing_Click(object sender, EventArgs e)
 {
     if (this.ComportIsExists)
     {
         EspToolDialog d = new EspToolDialog();
         d.PortName = this.CurretPortName;
         d.ShowDialog();
         d.Dispose();
     }
     else
     {
         MessageBox.Show("Select a Port first!", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }