示例#1
0
 private void GameMainWindow_Loaded(object sender, RoutedEventArgs e)
 {
     // After everything has loaded, rendered and so on
     Dispatcher.BeginInvoke(DispatcherPriority.ContextIdle, new Action(() =>
     {
         //System.Windows.Forms.MessageBox.Show("dispatched");
         MainGFX.Start();
         GameStarting();
     }));
 }
示例#2
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     // After everything has loaded, rendered and so on
     Dispatcher.BeginInvoke(DispatcherPriority.ContextIdle, new Action(() =>
     {
         lstSprites.ItemsSource = ThisLevel.Sprites;
         Scroller = new GameScroller(GameSlider, MainGFX, GameWrapper);
         MainGFX.Start();
     }));
 }