Example #1
0
        static void PlayPCSpeaker(BeeperType speaker, bool isContinious)
        {
            if (speaker == BeeperType.None)
                return;

            _frequency = (int) speaker;
            _isContinious = isContinious;

            if (_thread != null)
                _thread.Abort();

            _thread = new Thread(PlayBeep);
            _thread.Start();
        }
Example #2
0
		static void PlayPCSpeaker(BeeperType beeperType, bool isContinious)
		{
			if (beeperType != BeeperType.None)
			{
				_beepFrequency = (int)beeperType;
				_isContinious = isContinious;

				_isBeepThreadStopping = false;
				if (_beepThread == null)
				{
					_beepThread = new Thread(PlayBeep);
					_beepThread.Name = "PC Speaker";
					_beepThread.Start();
				}
			}
		}
Example #3
0
 public static void Play(string filePath, BeeperType speakertype, bool isContinious)
 {
     PlaySound(filePath, isContinious);
     PlayPCSpeaker(speakertype, isContinious);
 }
 public void OnDeliverBlueBeepersButtonClick()
 {
     _deliveredBeepersType = BeeperType.Blue;
     Execute();
     _executionController.Execute();
 }