Inheritance: XnaAndWinforms.GraphicsDeviceControl
        private void CreateXnaControl()
        {
            XnaControl = new ImageRegionSelectionControl();

            this.splitContainer3.Panel1.Controls.Add(this.XnaControl);

            this.XnaControl.ContextMenuStrip = this.TilesetXnaContextMenu;
            this.XnaControl.DesiredFramesPerSecond = 30F;
            //this.XnaControl.Location = new System.Drawing.Point(145, 82);
            this.XnaControl.Dock = DockStyle.Fill;
            this.XnaControl.Name = "XnaControl";
            //this.XnaControl.Size = new System.Drawing.Size(296, 172);
            this.XnaControl.TabIndex = 5;
            this.XnaControl.Text = "graphicsDeviceControl1";
            this.XnaControl.MouseClick += new System.Windows.Forms.MouseEventHandler(this.XnaControl_MouseClick);

            List<int> availableZoomLevels = new List<int>();

            availableZoomLevels.Add(1600);
            availableZoomLevels.Add(1200);
            availableZoomLevels.Add(800);
            availableZoomLevels.Add(600);
            availableZoomLevels.Add(400);
            availableZoomLevels.Add(300);
            availableZoomLevels.Add(200);
            availableZoomLevels.Add(175);
            availableZoomLevels.Add(150);
            availableZoomLevels.Add(125);
            availableZoomLevels.Add(100);
            availableZoomLevels.Add(80);
            availableZoomLevels.Add(60);
            availableZoomLevels.Add(40);
            availableZoomLevels.Add(20);

            XnaControl.AvailableZoomLevels = availableZoomLevels;
            XnaControl.ZoomValue = 100;

            XnaControl.MouseWheelZoom += HandleZoom;
        }
        public void Initialize(ImageRegionSelectionControl control, SystemManagers managers, WireframeEditControls wireframeControl)
        {
            mManagers = managers;
            mManagers.Renderer.SamplerState = SamplerState.PointClamp;


            mControl = control;


            mManagers.Renderer.Camera.CameraCenterOnScreen = CameraCenterOnScreen.TopLeft;

            mWireframeControl = wireframeControl;
            mWireframeControl.WandSelectionChanged += ReactToMagicWandChange;

            mControl.RegionChanged += new EventHandler(HandleRegionChanged);

            mControl.MouseWheelZoom += new EventHandler(HandleMouseWheelZoom);
            mControl.AvailableZoomLevels = mWireframeControl.AvailableZoomLevels;

            mControl.XnaUpdate += new Action(HandleXnaUpdate);
            mControl.Panning += HandlePanning;

            mSpriteOutline = new LineRectangle(managers);
            managers.ShapeManager.Add(mSpriteOutline);
            mSpriteOutline.Visible = false;
            mSpriteOutline.Color = OutlineColor;

            mLineGrid = new LineGrid(managers);
            managers.ShapeManager.Add(mLineGrid);
            mLineGrid.Visible = false;
            mLineGrid.Color = OutlineColor;

            mControl.Click += new EventHandler(HandleClick);

            mStatusText = new StatusTextController(managers);
            mControl_XnaInitialize();
        }