예제 #1
0
        private void OpenVibeClassification_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (AsyncWorker.IsBusy)
            {
                AsyncWorker.CancelAsync();
            }

            OpenVibeController.Stop();
        }
예제 #2
0
        void asyncWorker_DoWork(object sender, DoWorkEventArgs e)
        {
            BackgroundWorker bwAsync = sender as BackgroundWorker;

            while (!bwAsync.CancellationPending)
            {
                analog.Update();
            }

            if (bwAsync.CancellationPending)
            {
                OpenVibeController.Stop();
                e.Cancel = true;
            }
        }
예제 #3
0
        void Clear()
        {
            if (OpenVibeController.IsRunning)
            {
                OpenVibeController.Stop();
            }

            openVibeWorker.CancelAsync();
            //InitOpenVibeWorker();

            buttonStart.Text    = "Start";
            buttonStart.Enabled = true;

            of = null;
            tf = null;
            cf = null;

            ow = null;
            ew = null;
            cw = null;

            currentForm   = null;
            currentWindow = null;
        }
예제 #4
0
 private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     OpenVibeController.Stop();
 }
예제 #5
0
 private void buttonExit_Click(object sender, EventArgs e)
 {
     OpenVibeController.Stop();
     Application.Exit();
 }
예제 #6
0
 private void exitToolStripMenuItem_Click(object sender, EventArgs e)
 {
     OpenVibeController.Stop();
     Application.Exit();
 }