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; }