public EventClass(Int32 ID, Boolean Enable, EventModeType EventMode, EventProcessType EventProcess,
                          ServiceController ServiceController, Int32 Interval = 1000)
        {
            myID           = ID;
            myEnable       = Enable;
            myEventMode    = EventMode;
            myEventProcess = EventProcess;

            myServiceController = ServiceController;

            myInterval   = Interval;
            myEventClock = new Timer(new TimerCallback(myElapsedHandler), null, Timeout.Infinite, myInterval);
        }
        public EventClass(Int32 ID, Boolean Enable, String EventModeStr, String EventProcessStr,
                          ServiceController ServiceController, Int32 Interval = 1000)
        {
            myID     = ID;
            myEnable = Enable;

            switch (EventModeStr)
            {
            case "Periodic": myEventMode = EventModeType.PERIODIC;  break;

            case "Trigger": myEventMode = EventModeType.TRIGGER;    break;

            default: myEventMode = EventModeType.UNKNOWN;   break;
            }

            switch (EventProcessStr)
            {
            case "Start": myEventProcess = EventProcessType.START;  break;

            case "Stop": myEventProcess = EventProcessType.STOP;    break;

            case "Pause":   myEventProcess = EventProcessType.PAUSE;    break;

            case "Continue":    myEventProcess = EventProcessType.CONTINUE; break;

            case "Restart": myEventProcess = EventProcessType.RESTART;  break;

            case "Toggle": myEventProcess = EventProcessType.TOGGLE;    break;

            default: myEventProcess = EventProcessType.UNKNOWN; break;
            }

            myServiceController = ServiceController;

            myInterval   = Interval;
            myEventClock = new Timer(new TimerCallback(myElapsedHandler), null, Timeout.Infinite, myInterval);
        }