Пример #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;
        }
Пример #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);
        }
Пример #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;
        }
Пример #4
0
 //! constructor with adapter and parent
 public ESnailHIDAgent(TelegraphHIDAdapter AdapterItem)
     : base(AdapterItem)
 {
     Initialize();
 }
Пример #5
0
 //! \brief constructor
 public ToolsSB200(TelegraphHIDAdapter Adapter)
     : base(Adapter)
 {
 }