ARCed.Controls.GraphicsDeviceControl.OnCreateControl C# (CSharp) Метод

OnCreateControl() защищенный Метод

Initializes the control.
protected OnCreateControl ( ) : void
Результат void
        protected override void OnCreateControl()
        {
            // Don't initialize the graphics device if we are running in the designer.
            if (!DesignMode)
            {
                this.graphicsDeviceService = GraphicsDeviceService.AddRef(Handle,
                                                                          ClientSize.Width,
                                                                          ClientSize.Height);
                // Register the service, so components like ContentManager can find it.
                this.services.AddService<IGraphicsDeviceService>(this.graphicsDeviceService);

                // Give derived classes a chance to initialize themselves.
                this.Initialize();
            }

            base.OnCreateControl();
        }