Esempio n. 1
0
        public MainWindow()
        {
            InitializeComponent();
            logik = new Logic();
            m     = new Util.Misc();

            Util.Misc.OnActualPose  += new Util.Misc.ActualURPoseEventHandler(updateActualURPoseLabels);
            Util.Misc.OnActualJoint += new Util.Misc.ActualURJointEventHandler(updateActualURJointLabels);
            GeoMagicTouch.OnGeoPose += new GeoMagicTouch.GeoMagicPoseEventHandler(updateGMposeLabels);
        }
        public MainWindow()
        {
            InitializeComponent();
            command = new DATA.SendCommandsToUR();
            m       = new Util.Misc();

            socketThread = new Thread(new ThreadStart(DATA.SocketListener.RunSocketListener));
            socketThread.Start();
            forceThread = new Thread(new ThreadStart(DATA.ModbusComm.ReadInpRegDTO));
            forceThread.Start();

            Util.Misc.OnActualPose      += new Util.Misc.ActualURPoseEventHandler(updateActualURPoseLabels);
            Util.Misc.OnActualForce     += new Util.Misc.ActualForceEventHandler(updateActualForceLabels);
            DATA.TCP_server.gmPoseEvent += new DATA.TCP_server.GMposeEvent(updateGMposeLabels);

            MouseMove += new MouseEventHandler(MainWindow_MouseMove);
            MouseDown += new MouseButtonEventHandler(MainWindow_MouseDown);
            MouseUp   += new MouseButtonEventHandler(MainWindow_MouseUp);
        }