private void myBoard_GameBuilt(object sender, GameBoardBuiltEventArgs e) { if (Dispatcher.CheckAccess()) { Loading.Visibility = Visibility.Hidden; } else { Dispatcher.BeginInvoke(new Action <object, GameBoardBuiltEventArgs>(myBoard_GameBuilt), new object[] { null, null }); } }
private void OnGameBuilt(GameBoardBuiltEventArgs e) { GameBuilt(this, e); }
private void myBoard_GameBuilt(object sender, GameBoardBuiltEventArgs e) { if (Dispatcher.CheckAccess()) { Loading.Visibility = Visibility.Hidden; } else Dispatcher.BeginInvoke(new Action<object, GameBoardBuiltEventArgs>(myBoard_GameBuilt), new object[] { null, null }); }