Beispiel #1
0
 private static extern UInt32 PTRobot_SetOpenCloseFunction(
                                 OpenCloseCallBack x);
Beispiel #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;
        }
Beispiel #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;
        }
Beispiel #4
0
 ////////////////////////////////////////////////////////////////////////
 /// <summary>
 //  Constructor
 /// </summary>
 public PTRobot_DLL()
 {
     m_OpenCloseCallBack = new OpenCloseCallBack(cbOpenCloseDrive);
 }