private void toolStripButton1_Click(object sender, EventArgs e) { if (isConnected) { MessageBoxEx.Show(this, "Please disconnect from flight controller before entering Log Download mode", "Disconnect First", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } log_downloader logDL = new log_downloader(); logDL.sLogDirectory = gui_settings.sLogFolder; logDL.sSerialPortName = cb_serial_port.Text; logDL.iSerialPortBaudrate = int.Parse(cb_serial_speed.Text); logDL.ShowDialog(); logDL.Dispose(); }
private void toolStripButton1_Click(object sender, EventArgs e) { if (isConnected) { MessageBoxEx.Show(this, "请在进入日志下载模式前断开飞行控制器", "请先断开连接", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } log_downloader logDL = new log_downloader(); logDL.sLogDirectory = gui_settings.sLogFolder; logDL.sSerialPortName = cb_serial_port.Text; logDL.iSerialPortBaudrate = int.Parse(cb_serial_speed.Text); logDL.ShowDialog(); logDL.Dispose(); }