/// <summary>
 /// Usefull to get a test project up and running quickly. See any TestProject for a usage reference
 /// </summary>
 public static void QuickStartSimpleWindow(View view, String title = "", int width = 800, int height = 600, 
     System.Windows.Forms.Form window = null, GraphicsDevice.GraphicsDevice graphicsDevice = null)
 {
     if (String.IsNullOrEmpty(title))
         title = Path.GetFileNameWithoutExtension(System.Windows.Forms.Application.ExecutablePath);
     using (window = window ?? new System.Windows.Forms.Form())
     {
         window.Text = title;
         window.Width = width;
         window.Height = height;
         Graphics.GraphicsDevice.SettingsUtilities.Initialize(Graphics.GraphicsDevice.DeviceMode.Windowed);
         Application.Init(window);
         view.Dock = DockStyle.Fill;
         view.GraphicsDevice = graphicsDevice ?? new GraphicsDevice9();
         view.GraphicsDevice.Settings = new Settings
         {
             DeviceMode = DeviceMode.Windowed,
             AntiAliasing = MultisampleType.EightSamples,
             Resolution = new Resolution {Width = width, Height = height},
         };
         window.Controls.Add(view);
         System.Windows.Forms.Application.Run(window);
     }
 }
 /// <summary>
 /// Usefull to get a test project up and running quickly. See any TestProject for a usage reference
 /// </summary>
 public static void QuickStartSimpleWindow(View view, String title          = "", int width = 800, int height = 600,
                                           System.Windows.Forms.Form window = null, GraphicsDevice.GraphicsDevice graphicsDevice = null)
 {
     if (String.IsNullOrEmpty(title))
     {
         title = Path.GetFileNameWithoutExtension(System.Windows.Forms.Application.ExecutablePath);
     }
     using (window = window ?? new System.Windows.Forms.Form())
     {
         window.Text   = title;
         window.Width  = width;
         window.Height = height;
         Graphics.GraphicsDevice.SettingsUtilities.Initialize(Graphics.GraphicsDevice.DeviceMode.Windowed);
         Application.Init(window);
         view.Dock                    = DockStyle.Fill;
         view.GraphicsDevice          = graphicsDevice ?? new GraphicsDevice9();
         view.GraphicsDevice.Settings = new Settings
         {
             DeviceMode   = DeviceMode.Windowed,
             AntiAliasing = MultisampleType.EightSamples,
             Resolution   = new Resolution {
                 Width = width, Height = height
             },
         };
         window.Controls.Add(view);
         System.Windows.Forms.Application.Run(window);
     }
 }