//! 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; }
//! \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); }
//! \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; }
//! constructor with adapter and parent public ESnailHIDAgent(TelegraphHIDAdapter AdapterItem) : base(AdapterItem) { Initialize(); }
//! \brief constructor public ToolsSB200(TelegraphHIDAdapter Adapter) : base(Adapter) { }