// NEED TO IMPLEMENT --------------------------------------------------------------------------------- public void HandleRecurringTrigger(float timeDelay, FormTrigger trigger) { if (!trigger.isRecurringActive) { var tOp = new ThreadedOperations((int)Math.Round(timeDelay), Operation.EVENT_KEYPRESS, this); if (this.Type == Operation.TYPE_INPUTKEY) { mythread = new Thread(tOp.RunRecursive); mythread.IsBackground = true; mythread.Start(); } else { mythread = new Thread(tOp.RunThread); mythread.IsBackground = true; mythread.Start(); } trigger.BackColor = System.Drawing.Color.Green; trigger.isRecurringActive = true; } else { var x = new ThreadedOperations((int)Math.Round(timeDelay)); x.SleepOnly(); trigger.BackColor = System.Drawing.Color.Red; if (mythread != null) { mythread.Abort(); } trigger.isRecurringActive = false; } }
// NEED TO IMPLEMENT --------------------------------------------------------------------------------- public void HandleTimeBlinkTrigger(float timeDelay) { var x = new ThreadedOperations((int)Math.Round(timeDelay), Operation.EVENT_KEYPRESS, this); var t = new Thread(x.RunThread); t.Start(); }
// NEED TO IMPLEMENT --------------------------------------------------------------------------------- public void HandleFluidTrigger() { var x = new ThreadedOperations(Operation.EVENT_KEYPRESS, this); if (this.Type == Operation.TYPE_INPUTKEY) { mythread = new Thread(x.RunRecursive); mythread.Start(); } else { Run(Operation.EVENT_KEYPRESS); } }
// NEED TO IMPLEMENT --------------------------------------------------------------------------------- public void HandleTimeDelayTrigger(float timeDelay) { var tOp = new ThreadedOperations((int)Math.Round(timeDelay), Operation.EVENT_KEYPRESS, this); if (this.Type == Operation.TYPE_INPUTKEY) { mythread = new Thread(tOp.RunRecursive); mythread.Start(); } else { mythread = new Thread(tOp.RunThread); mythread.Start(); } }