Inheritance: GraphicsDeviceControl
Exemple #1
0
        private void InitializeObjectPreview()
        {
            _drawControl = new LilyPathControl();
            _drawControl.Dock = DockStyle.Fill;
            _drawControl.DrawAction = DrawObjectAction;

            panel1.Controls.Add(_drawControl);
        }
Exemple #2
0
        private void InitializeObjectPreview()
        {
            _drawControl = new LilyPathControl();
            _drawControl.Dock = DockStyle.Fill;
            _drawControl.DrawAction = DrawObjectAction;

            panel1.Controls.Add(_drawControl);

            /*_layerControl = new LayerGraphicsControl();
            _layerControl.Dock = DockStyle.Fill;
            _layerControl.WidthSynced = true;
            _layerControl.CanvasAlignment = CanvasAlignment.UpperLeft;
            _layerControl.TextureCache.SourcePool = _localManager.TexturePool;

            _rootLayer = new GroupLayerPresenter();
            _layerControl.RootLayer = new GroupLayer(_rootLayer);

            _previewPanel.Controls.Add(_layerControl);*/
        }