Exemplo n.º 1
0
        private void HandleSetPlayer(object sender, PlayerEventArgs e)
        {
            Action action = () =>
            {
                SetPlayer(e.Player);
            };

            Dispatcher.BeginInvoke(action);
        }
Exemplo n.º 2
0
        private void HandleSetPlayer(object sender, PlayerEventArgs e)
        {
            var handler = SetPlayerHandler;

            if (handler != null)
            {
                handler(this, new PlayerEventArgs(e.Player));
            }
        }