private void OnStart()
        {
            button_Start.Enabled      = false;
            checkBox_PerFrame.Enabled = false;
            checkBox_Append.Enabled   = false;
            button_Open.Enabled       = false;
            btnDeleteLog.Enabled      = false;

            try
            {
                int nLevel =
                    checkBox_PerFrame.Checked ? 2 : 1;
                m_collector.SetLevel(nLevel);
                m_collector.SetLog(tbxLogOutput.Text);
                this.Cursor = Cursors.WaitCursor;
                m_collector.Start();
                MsdkAnalyzerCpp.start();

                this.Cursor       = Cursors.Default;
                button_Start.Text = "Stop";
                timer1.Enabled    = true;
                timer1.Start();
            }
            catch (System.Exception ex)
            {
                MessageBox.Show(ex.ToString());
                checkBox_PerFrame.Enabled = true;
                checkBox_Append.Enabled   = true;
            }
            button_Start.Enabled = true;
        }
        public SdkAnalyzerForm()
        {
            InitializeComponent();
            m_collector = new DataCollector();
            System.IO.Directory.CreateDirectory(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + _PATH.TRACER_PATH);
            tbxLogOutput.Text = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + _PATH.TRACER_PATH + _PATH.TRACER_LOG;
            m_collector.SetLog(tbxLogOutput.Text);
            m_collector.Create();

            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;
            }
        }