private void toolStrip_tBRadiusCompValue_KeyDown(object sender, KeyEventArgs e) { if (e.KeyValue == (char)13) { double radius = Properties.Settings.Default.crcValue; if (Double.TryParse(toolStrip_tBRadiusCompValue.Text.Replace(',', '.'), System.Globalization.NumberStyles.Any, System.Globalization.CultureInfo.InvariantCulture, out radius)) { Properties.Settings.Default.crcValue = radius; Properties.Settings.Default.guiBackgroundShow = toolStripViewBackground.Checked = true; { //transformStart(); Cursor.Current = Cursors.WaitCursor; unDo.setCode(fCTBCode.Text, string.Format("Radius compensation {0:0.00}", radius), this); showPicBoxBgImage = false; // don't show background image anymore pictureBox1.BackgroundImage = null; pBoxTransform.Reset(); grbl.posMarker = new xyPoint(0, 0); fCTBCode.Text = VisuGCode.transformGCodeRadiusCorrection(radius); // showMessageForm(log.get()); transformEnd(); } } else { MessageBox.Show(Localization.getString("mainParseError"), Localization.getString("mainAttention")); toolStrip_tBRadiusCompValue.Text = string.Format("{0:0.000}", radius); } e.SuppressKeyPress = true; gCodeToolStripMenuItem.HideDropDown(); } }