Пример #1
0
        protected override void OnPaint(PaintEventArgs e)
        {
            e.Graphics.FillRectangle(Brushes.White, this.ClientRectangle);
            if (space == null)
            {
                return;
            }
            Canvas canvas = this.space.Draw(this.ClientRectangle.Width - 4, this.ClientRectangle.Height - 4,
                                            this.angleX, this.angleY, this.angleZ, Point3D.Empty());

            if (canvas == null)
            {
                return;
            }
            canvas.DrawOn(new Point(2, 2), e.Graphics);
        }