Example #1
0
        public PreviewEditor()
        {
            InitializeComponent();

            textureViewer      = new TextureViewer();
            textureViewer.Dock = DockStyle.Fill;
            stPanel1.Controls.Add(textureViewer);

            textureViewer.LoadTextures();
        }
Example #2
0
        public PreviewEditor()
        {
            InitializeComponent();

            textureViewer = new TextureViewer();
            textureViewer.LoadTextures();
            textureViewer.Show(dockPanel1, DockState.DockLeft);

            DockContent dockedViewport = new DockContent();

            SetupViewport(dockedViewport);
            dockedViewport.Show(dockPanel1, DockState.Document);
        }