Example #1
0
        //! constructor
        public USBHIDTools(TelegraphHIDAdapter Adapter)
        {
            m_Adapter = Adapter;

            m_Adapter.ConnectNotice    += new DeviceConnected(AdapterConnectNotice);
            m_Adapter.DisconnectNotice += new DeviceDisconnected(AdapterDisconnectNotice);

            m_State = BM_TOOL_STATE.BM_TS_CONNECTED;
        }
Example #2
0
        //! \brief remove a tool
        public override Boolean Remove()
        {
            if (null != m_Adapter)
            {
                m_Adapter.Dispose();
                m_Adapter = null;
            }

            m_State = BM_TOOL_STATE.BM_TS_REMOVED;

            return(true);
        }
Example #3
0
        //! \brief initialize this object
        private void Initialize()
        {
            InitializeComponent();

            if (null == m_Adapter)
            {
                m_Adapter = new TelegraphHIDAdapter(m_AdapterID);
            }
            else
            {
                m_AdapterID = m_Adapter.ID;
            }

            //this.Visible = false;
        }
Example #4
0
 //! constructor with adapter and parent
 public ESnailHIDAgent(TelegraphHIDAdapter AdapterItem)
     : base(AdapterItem)
 {
     Initialize();
 }
Example #5
0
 //! \brief constructor
 public ToolsSB200(TelegraphHIDAdapter Adapter)
     : base(Adapter)
 {
 }