Esempio n. 1
0
 ///<summary>
 ///</summary>
 public MainWindow()
 {
     InitializeComponent();
     AppKeys.Initialize();
     _alarmedDragonEvent = new AlarmedEventTrigger("Dragon", new List <Keys> {
         Keys.LControlKey, Keys.Oemtilde
     }, new List <Keys> {
         Keys.LControlKey, Keys.Z
     }, 19, new List <int> {
         15, 10, 5
     }, 30, true,
                                                   new List <bool> {
         true, true, true, true
     }, "Dragon in ", false, "Dragon is up", this);
     _testEvent = new AlarmedEventTrigger("test", new List <Keys> {
         Keys.LControlKey, Keys.X
     }, new List <Keys> {
         Keys.LControlKey, Keys.Z
     }, 19, new List <int> {
         15, 10, 5
     }, 30, true,
                                          new List <bool> {
         true, true, true
     }, "test in ", false, "test is up", this);
     _appEvents.Add(_alarmedDragonEvent);
     _appEvents.Add(_testEvent);
 }
Esempio n. 2
0
 ///<summary>
 ///</summary>
 public MainWindow()
 {
     InitializeComponent();
     AppKeys.Initialize();
     _alarmedDragonEvent = new AlarmedEventTrigger("Dragon", new List<Keys> { Keys.LControlKey, Keys.Oemtilde }, new List<Keys> { Keys.LControlKey, Keys.Z }, 19, new List<int> { 15, 10, 5 }, 30, true,
          new List<bool> { true, true, true, true }, "Dragon in ", false, "Dragon is up", this);
     _testEvent = new AlarmedEventTrigger("test", new List<Keys> { Keys.LControlKey, Keys.X }, new List<Keys> { Keys.LControlKey, Keys.Z }, 19, new List<int> { 15, 10, 5 }, 30, true,
          new List<bool> { true, true, true }, "test in ", false, "test is up", this);
     _appEvents.Add(_alarmedDragonEvent);
     _appEvents.Add(_testEvent);
 }
Esempio n. 3
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;
 }
Esempio n. 4
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;
 }