private void buttonOK_Click(object sender, EventArgs e) { if (radioButtonDebug.Checked) { mLogLevel = CLogLevel.cllDebug; } if (radioButtonError.Checked) { mLogLevel = CLogLevel.cllError; } if (radioButtonFatal.Checked) { mLogLevel = CLogLevel.cllFatal; } if (radioButtonPanic.Checked) { mLogLevel = CLogLevel.cllPanic; } if (radioButtonQuiet.Checked) { mLogLevel = CLogLevel.cllQuiet; } if (radioButtonVerbose.Checked) { mLogLevel = CLogLevel.cllVerbose; } if (radioButtonWarning.Checked) { mLogLevel = CLogLevel.cllWarning; } mLogPath = textBoxLogPath.Text; if (radioButtonIdle.Checked) { mThreadPrority = CThreadPriority.ctpIdle; } if (radioButtonLower.Checked) { mThreadPrority = CThreadPriority.ctpLower; } if (radioButtonLowest.Checked) { mThreadPrority = CThreadPriority.ctpLowest; } if (radioButtonNormal.Checked) { mThreadPrority = CThreadPriority.ctpNormal; } try { mThreadCount = int.Parse(textBoxThreadCount.Text); } catch (System.Exception ex) { mThreadCount = 1; } mPreview = radioButtonPreview.Checked; DialogResult = DialogResult.OK; }