예제 #1
0
        protected virtual void OnPowerChange(PowerChangeEvent e)
        {
            switch (e.Status)
            {
            case PowerBroadcastStatus.Suspend:
                OnSuspend();
                break;

            case PowerBroadcastStatus.ResumeSuspend:
                OnResumeSuspend();
                break;
            }
        }
예제 #2
0
 internal void SendEvent(ModuleBase source, PowerChangeEvent e)
 {
     PowerChange?.Invoke(source, e);
 }