示例#1
0
        public PathCAM()
        {
            InitializeComponent();

            router = new RouterGUI();
            drawing3D.AddObject(router);
            robotControl.AssignRouter(router);

            drawing3D.AddObject(robotControl);
            drawing3D.AddObject(this);
            drawing3D.DragDrop += this.Drawing3D_DragDrop;
            drawing3D.DragOver += this.Drawing3D_DragOver;
            drawing3D.DragEnter += this.Drawing3D_DragEnter;
            drawing3D.DragLeave += this.Drawing3D_DragLeave;

            settings = new Settings(robotControl.GetRobot(), router);
            propertyGrid.SelectedObject = settings;
        }
示例#2
0
        public PathCAM()
        {
            InitializeComponent();

            router = new RouterGUI();
            drawing3D.AddObject(router);
            robotControl.AssignRouter(router);

            drawing3D.AddObject(robotControl);
            drawing3D.AddObject(this);
            drawing3D.DragDrop  += this.Drawing3D_DragDrop;
            drawing3D.DragOver  += this.Drawing3D_DragOver;
            drawing3D.DragEnter += this.Drawing3D_DragEnter;
            drawing3D.DragLeave += this.Drawing3D_DragLeave;

            settings = new Settings(robotControl.GetRobot(), router);
            propertyGrid.SelectedObject = settings;
        }