private void buttonSettings_Click(object sender, EventArgs e) { if (mConverter == null) { return; } if (mConvertSettings.ShowDialog() == DialogResult.OK) { mThreadCount = mConvertSettings.ThreadCount; mThreadPriority = mConvertSettings.ThreadPrority; mLogLevel = mConvertSettings.LogLevel; mLogPath = mConvertSettings.LogPath; mPreview = mConvertSettings.Preview; if (mConverter != null) { mConverter.Preview = mPreview; } } }