Ejemplo n.º 1
0
        // --------------------------------------------------------------------

        private void ModelImporterWindow_Shown(object sender, EventArgs e)
        {
			if (!DesignMode)
			{
                mPreviewRenderer = new PreviewRenderer();
                mPreviewRenderer.Init(pictureBox1.Width, pictureBox1.Height, this.Handle);
                RenderPreview();
            }
        }
Ejemplo n.º 2
0
        // --------------------------------------------------------------------

        private void AssetViewList_Load(object sender, EventArgs e)
        {
            if (!DesignMode)
            {
                mPreview = InstantiatePreviewRenderer();
                mPreview.Init(mPreviewSize, mPreviewSize, this.Handle);
                mPreview.Render();
                UpdateList(0);
            }
        }
Ejemplo n.º 3
0
        // --------------------------------------------------------------------

        protected override void OnHandleDestroyed(EventArgs e)
        {
            base.OnHandleDestroyed(e);

            if (mPreview != null)
            {
                mPreview.Dispose();
            }

            mPreview = null;
        }