Esempio n. 1
0
 private static extern UInt32 PTRobot_SetOpenCloseFunction(
                                 OpenCloseCallBack x);
Esempio n. 2
0
        public uint SetOpenCloseCallback(OpenCloseCallBack myOpenCloseCallback)
        {
            uint nValue = 0;
            try
            {
                nValue = PTRobot_SetOpenCloseFunction(myOpenCloseCallback);
            }
            catch (Exception e)
            {
                MessageBox.Show("PTRobot_SetRoboticDrive() failed:\n" + e.Message);
            }

            return nValue;
        }
Esempio n. 3
0
        public static PTRobotReturn SetOpenCloseCallback(OpenCloseCallBack myOpenCloseCallback)
        {
            uint nValue = 0;
            PTRobotReturn ret = PTRobotReturn.Ok;

            try
            {
                nValue = PTRobot_SetOpenCloseFunction(myOpenCloseCallback);
                ret = (PTRobotReturn)nValue;
            }
            catch
            {
                ret = PTRobotReturn.Internal;
            }

            return ret;
        }
Esempio n. 4
0
 ////////////////////////////////////////////////////////////////////////
 /// <summary>
 //  Constructor
 /// </summary>
 public PTRobot_DLL()
 {
     m_OpenCloseCallBack = new OpenCloseCallBack(cbOpenCloseDrive);
 }