Пример #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);
            }
        }
Пример #2
0
 void StatusManager_StatusManagerActivtyEvent(object ender, ActivityEventHandlerArgs e)
 {
     UpdateStatusDisplay(e.ActivityAction.ToString());
 }
Пример #3
0
 void TheMachine_MachineActivtyEvent(object ender, ActivityEventHandlerArgs e)
 {
     UpdateStatusDisplay(e.ActivityAction.ToString());
 }