void PhidgitController_Detach(object sender, Phidgets.Events.DetachEventArgs e)
        {
            logger.Info("PhidgitController_Detach");
            vm.bControllerOn = false;
            //            if (vm.errormsg == string.Empty)

        }
Exemple #2
0
        void spatial_Detach(object sender, Phidgets.Events.DetachEventArgs e)
        {
            Spatial detached = (Spatial)sender;

            attachedTxt.Text         = detached.Attached.ToString();
            nameTxt.Text             = "";
            serialTxt.Text           = "";
            versionTxt.Text          = "";
            sampleDoneButton.Enabled = false;

            pictureBox1.Image = null;
            messagesTextBox.Clear();

            if (drawThread != null)
            {
                if (drawThread.IsAlive)
                {
                    drawThread.Abort();
                }
            }
        }