Ejemplo n.º 1
0
 //private bool _addStringBeforeActualSound;
 ///<summary>
 ///</summary>
 ///<param name="labelText"></param>
 ///<param name="keyCombinationStart"></param>
 ///<param name="keyCombinationAction"></param>
 ///<param name="respawnSecondsValue"></param>
 ///<param name="alarmTimers"></param>
 ///<param name="otherIntervalsSecondsValue"></param>
 ///<param name="useOtherIntervalsValue"></param>
 ///<param name="activateCurrentTimerTaskValue"></param>
 ///<param name="stringBeforeSoundValue"></param>
 ///<param name="timeOnly"></param>
 ///<param name="finishedMessage"></param>
 ///<param name="mainWindow"></param>
 public AlarmedEventTrigger(string labelText, List<Keys> keyCombinationStart, List<Keys> keyCombinationAction,
     int respawnSecondsValue, List<int> alarmTimers, int otherIntervalsSecondsValue, bool useOtherIntervalsValue,
     List<bool> activateCurrentTimerTaskValue, string stringBeforeSoundValue, bool timeOnly, string finishedMessage, MainWindow mainWindow)
     : base(keyCombinationStart, keyCombinationAction, respawnSecondsValue, alarmTimers[0], otherIntervalsSecondsValue, useOtherIntervalsValue, finishedMessage)
 {
     _activateCurrentTimerTask = activateCurrentTimerTaskValue;
     _alarmTimers = alarmTimers;
     _stringBeforeSound = stringBeforeSoundValue;
     //_addStringBeforeActualSound = !timeOnly;
     new EventGuiBuilder(mainWindow, this, labelText, keyCombinationStart, keyCombinationAction, alarmTimers, activateCurrentTimerTaskValue, timeOnly, finishedMessage);
 }
Ejemplo n.º 2
0
 public EventGuiBuilder(MainWindow mainWindow, AlarmedEventTrigger alarmedEventTrigger, string labelText,
     List<Keys> keyCombinationStart, List<Keys> keyCombinationAction, List<int> intervalSecondsValues, List<bool> activateCurrentTimerTaskValue, bool addStringBeforeActualSoundValue, string finishedMessage)
 {
     _labelText = labelText;
     _mainWindow = mainWindow;
     _alarmedEventTrigger = alarmedEventTrigger;
     _keyCombinationStart = keyCombinationStart;
     _keyCombinationAction = keyCombinationAction;
     _activateCurrentTimerTaskValue = activateCurrentTimerTaskValue;
     _addStringBeforeActualSoundValue = addStringBeforeActualSoundValue;
     _finishedMessage = finishedMessage;
     _intervalSecondsValues = intervalSecondsValues;
     Buildforms();
     _basePoint.Y += 30;
 }