protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
        {
            if (Configuration.IsSimulation)
            {
                CMboxHelper.StopSimulation();
            }

            SampleHelper.RemoveSampleRepository(mSampleRep);
            Application.Exit();
        }
        private void OnExit(object sender, EventArgs e)
        {
            if (Configuration.IsSimulation)
            {
                CMboxHelper.StopSimulation();
            }

            SampleHelper.RemoveSampleRepository(mSampleRep);
            mTrayIcon.Visible = false;
            Application.Exit();
        }