private void HandleSetPlayer(object sender, PlayerEventArgs e) { Action action = () => { SetPlayer(e.Player); }; Dispatcher.BeginInvoke(action); }
private void HandleSetPlayer(object sender, PlayerEventArgs e) { var handler = SetPlayerHandler; if (handler != null) { handler(this, new PlayerEventArgs(e.Player)); } }