예제 #1
0
 private void StartMonoGameWindow_Click(object sender, RoutedEventArgs e)
 {
     new Thread(() =>
     {
         Win = new Example();
         Console.WriteLine("Creating window {0}", Win.Window.Handle);
         Win.Run();
         Win.Dispose();
     }).Start();
 }
예제 #2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     using (var win = new Example())
         win.Run();
 }
예제 #3
0
 static void Main()
 {
     using (var game = new Example())
         game.Run();
 }
예제 #4
0
 static void Main()
 {
     using (var win = new Example())
         win.Run();
 }