Ejemplo n.º 1
0
        private void OnUserStateChanged(TimeWarpStateUserMessage updatedState, TimeWarpAgent timeWarpAgent)
        {
            SendOrPostCallback callback = delegate
            {
                EventHandler <UserMessageEventArgs> handler = UserStateChanged;
                if (handler != null)
                {
                    handler(this, new UserMessageEventArgs(updatedState, timeWarpAgent));
                }
            };

            RunCallback(callback);
        }
Ejemplo n.º 2
0
 public UserMessageEventArgs(TimeWarpStateUserMessage updatedState, TimeWarpAgent timeWarpAgent)
 {
     TimeWarpAgent = timeWarpAgent;
     _updatedState = updatedState;
 }