Example #1
0
        private static void RaiseTransitionStatusEvent(MachineAction action)
        {
            if (StatusManagerActivtyEvent != null)
            {
                var args = new ActivityEventHandlerArgs();
                args.ThisTransitionState = _currentTransitionState;
                args.ActivityAction = action;
                args.EventRaiseTime = DateTime.UtcNow;

                StatusManagerActivtyEvent.Invoke(null, args);
            }
        }
Example #2
0
 void StatusManager_StatusManagerActivtyEvent(object ender, ActivityEventHandlerArgs e)
 {
     UpdateStatusDisplay(e.ActivityAction.ToString());
 }
Example #3
0
 void TheMachine_MachineActivtyEvent(object ender, ActivityEventHandlerArgs e)
 {
     UpdateStatusDisplay(e.ActivityAction.ToString());
 }