private void FormChildAccessPort_FormClosing(object sender, FormClosingEventArgs e) { try { myUart.DeviceState = deviceStateBackup; myUart.RemoveControl(this); } catch (Exception ex) { myUart.Pack_Debug_out(null, "Exception" + "[" + ex.ToString() + "]"); } }
private void FormChildTexture_FormClosing(object sender, FormClosingEventArgs e) { try { myUart.DeviceState = deviceStateBackup; myUart.RemoveControl(this); } catch (Exception ex) { //MessageBox.Show(ex.ToString()); } }