Пример #1
0
 public Game1(EGGEditor form)
 {
     graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
     input = new InputHelper();
     Components.Add(new GamerServicesComponent(this));
     this.drawSurface = form.getDrawSurface();
     this.form = form;
     graphics.PreparingDeviceSettings += new EventHandler<PreparingDeviceSettingsEventArgs>(graphics_PreparingDeviceSettings);
     System.Windows.Forms.Control.FromHandle((this.Window.Handle)).VisibleChanged += new EventHandler(Game1_VisibleChanged);
 }
Пример #2
0
 public Game1(EGGEditor form)
 {
     graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
     input = new InputHelper();
     Components.Add(new GamerServicesComponent(this));
     this.drawSurface = form.getDrawSurface();
     this.form        = form;
     graphics.PreparingDeviceSettings += new EventHandler <PreparingDeviceSettingsEventArgs>(graphics_PreparingDeviceSettings);
     System.Windows.Forms.Control.FromHandle((this.Window.Handle)).VisibleChanged += new EventHandler(Game1_VisibleChanged);
 }