private void OnStop() { timer1.Stop(); timer1.Enabled = false; button_Start.Enabled = false; try { this.Cursor = Cursors.WaitCursor; m_collector.Stop(); MsdkAnalyzerCpp.stop(); RunConversionDialog(); button_Start.Text = "Start"; button_Start.Enabled = true; checkBox_PerFrame.Enabled = true; checkBox_Append.Enabled = true; FileInfo log_path = new FileInfo(tbxLogOutput.Text); if (log_path.Exists) { button_Open.Enabled = true; btnDeleteLog.Enabled = true; } else { button_Open.Enabled = false; btnDeleteLog.Enabled = false; } this.Cursor = Cursors.Default; } catch (System.Exception ex) { MessageBox.Show(ex.ToString()); button_Start.Text = "Start"; button_Start.Enabled = true; checkBox_PerFrame.Enabled = true; checkBox_Append.Enabled = true; FileInfo log_path = new FileInfo(tbxLogOutput.Text); if (log_path.Exists) { button_Open.Enabled = true; btnDeleteLog.Enabled = true; } else { button_Open.Enabled = false; btnDeleteLog.Enabled = false; } this.Cursor = Cursors.Default; } }