示例#1
0
        public Drawing3D()
        {
            this.InitializeComponent();

            this.viewport    = new Viewport3d(this);
            this.Resize     += new EventHandler(HandleControlResize);
            this.MouseMove  += new MouseEventHandler(HandleMouseMove);
            this.MouseEnter += new EventHandler(HandleMouseEnter);
            this.MouseLeave += new EventHandler(HandleMouseLeave);
            this.MouseUp    += new MouseEventHandler(HandleMouseUp);
            this.MouseDown  += new MouseEventHandler(HandleMouseDown);
            this.MouseWheel += new MouseEventHandler(HandleMouseWheel);

            drawTimer          = new Timer();
            drawTimer.Tick    += new EventHandler(drawTimer_Tick);
            drawTimer.Interval = 15;
            drawTimer.Start();
        }
示例#2
0
        public Drawing3D()
        {
            this.InitializeComponent();

            this.viewport = new Viewport3d(this);
            this.Resize += new EventHandler(HandleControlResize);
            this.MouseMove += new MouseEventHandler(HandleMouseMove);
            this.MouseEnter += new EventHandler(HandleMouseEnter);
            this.MouseLeave += new EventHandler(HandleMouseLeave);
            this.MouseUp += new MouseEventHandler(HandleMouseUp);
            this.MouseDown += new MouseEventHandler(HandleMouseDown);
            this.MouseWheel += new MouseEventHandler(HandleMouseWheel);

            drawTimer = new Timer();
            drawTimer.Tick += new EventHandler(drawTimer_Tick);
            drawTimer.Interval = 15;
            drawTimer.Start();
        }