public void SetSignalSign(bool isGood)
        {
            // InvokeRequired required compares the thread ID of the
            // calling thread to the thread ID of the creating thread.
            // If these threads are different, it returns true.
            if (this.pictureBox1.InvokeRequired)
            {
                SetSignalCallback d = new SetSignalCallback(SetSignalSign);
                this.Invoke(d, new object[] { isGood });
            }
            else
            {
                //set the sign + control the good/bad timer
                if (isGood)
                {
                    if (this.startStopButton.BackColor == System.Drawing.Color.Red)
                        this.goodTimer.start();
                    //this.pictureBox1.Image = System.Drawing.ImageFromFile(STRONG_SIGNAL_FILE);
                }
                else
                {
                    if (this.startStopButton.BackColor == System.Drawing.Color.Red)
                        this.goodTimer.stop();
                    // this.pictureBox1.Image = System.Drawing.Image.FromFile(WEAK_SIGNAL_FILE);
                }

                //check for heart rate
                //double rate = ((double)this.aMITesDataFilterer.MitesPerformanceTracker[0].PreviousCounter / (double)this.aMITesDataFilterer.MitesPerformanceTracker[0].GoodRate) * 100;
                //Testing - remove random component

                //int randvar = new Random().Next(3);
                //if ((rate > 30))
               // {
               //     this.label4.ForeColor = System.Drawing.Color.Green;
                //}
                //else
               // {
                //    this.label4.ForeColor = System.Drawing.Color.Red;
                //}
            }
        }
 public void SetSignalSign(bool isGood)
 {
     // InvokeRequired required compares the thread ID of the
     // calling thread to the thread ID of the creating thread.
     // If these threads are different, it returns true.
     if (this.pictureBox1.InvokeRequired)
     {
         SetSignalCallback d = new SetSignalCallback(SetSignalSign);
         this.Invoke(d, new object[] { isGood });
     }
     else
     {
         //set the sign + control the good/bad timer
         if (isGood)
         {
             if (this.startStopButton.BackColor == System.Drawing.Color.Red)
                 this.goodTimer.start();
         }
         else
         {
             if (this.startStopButton.BackColor == System.Drawing.Color.Red)
                 this.goodTimer.stop();
         }
     }
 }