예제 #1
0
 public void StartBtnPushed()
 {
     _compressionCtrl.Compress();
     _vibrator.VibrateOn();
     _ledController.ShineGreen();
     TurnOff();
 }
 // From IBtnHandler
 public void StartCompression()
 {
     Console.WriteLine("Start Pushed");
     if (_compressionStatus.Status == CompressionStatus.Decompressed)
     {
         _compressionCtrl.Compress();
     }
 }
예제 #3
0
 // From IBtnHandler
 public void StartBtnPushed()
 {
     if (_state == State.Relaxed)
     {
         _compressionCtrl.Compress();
         _state = State.Compressing;
     }
 }
예제 #4
0
 // From IBtnHandler
 public void StartBtnPushed()
 {
     if (!_stateOfCompression)
     {
         _compressionCtrl.Compress();
         _stateOfCompression = true;
     }
 }
        // From IBtnHandler
        public void StartBtnPushed()
        {
            _compressionCtrl.Compress();

            //_ledG.Toggle();
            //_vibrator.ToggleVibrator();
            //_vibrator.ToggleVibrator();
            //_ledG.Toggle();
        }
 // From IBtnHandler
 public void StartBtnPushed()
 {
     if (_compressionCtrl.IsCompressed() == false)
     {
         _LEDCtrlGreen.LEDCompOn();
         _vibratorCtrl.VibratorOn();
         _compressionCtrl.Compress();
         _vibratorCtrl.VibratorOff();
         _LEDCtrlGreen.LEDOff();
     }
     else
     {
         Console.WriteLine("All ready pumped");
     }
 }
예제 #7
0
 public void StartCompression()
 {
     if (isRelaxed)
     {
         Console.WriteLine("Starting compression");
         isCompressed = false;
         isRelaxed    = false;
         if (compressionProgressListener != null)
         {
             compressionProgressListener.CompressionStarted();
         }
         compressionController.Compress();
     }
     else
     {
         Console.WriteLine("Can't start compression when stocking is not relaxed");
     }
 }
 // From IBtnHandler
 public void StartBtnPushed()
 {
     _compressionCtrl.Compress();
 }
예제 #9
0
 public void StartButtonPushed()
 {
     System.Console.WriteLine("");
     _compressionCtrl.Compress();
     System.Console.WriteLine("");
 }
예제 #10
0
 public void StartBtnPushed(ICompressionCtrl compCtrl)
 {
     compCtrl.Compress();
 }
예제 #11
0
 public void Compress()
 {
     compressionCtrl.Compress();
 }
예제 #12
0
 public void StartCompression()
 {
     _comp.Compress();
 }