Exemple #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);
        }
 public UserMessageEventArgs(TimeWarpStateUserMessage updatedState, TimeWarpAgent timeWarpAgent)
 {
     TimeWarpAgent = timeWarpAgent;
     _updatedState = updatedState;
 }