private void btnFlashing_Click(object sender, EventArgs e) { if (this.ComportIsExists) { EspToolDialog d = new EspToolDialog(); d.PortName = this.CurretPortName; d.ShowDialog(); d.Dispose(); } }
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); } }