/// <summary> /// Default constructor /// </summary> public MFDeploy() { try { m_usbDiscovery = new Microsoft.SPOT.Debugger.UsbDeviceDiscovery(); m_usbDiscovery.OnDeviceChanged += new Microsoft.SPOT.Debugger.UsbDeviceDiscovery.DeviceChangedEventHandler(OnDeviceListChanged); } catch //WMI may not be supported on the OS { } }
private void Dispose(bool disposing) { if (!m_disposed) { if (disposing) { if (m_usbDiscovery != null) { m_usbDiscovery.OnDeviceChanged -= new Microsoft.SPOT.Debugger.UsbDeviceDiscovery.DeviceChangedEventHandler(OnDeviceListChanged); m_usbDiscovery.Dispose(); m_usbDiscovery = null; } } m_disposed = true; } }
private void StopEvents() { ManagerRemote.LogLine("StopEvents"); if (m_usbDiscovery != null) { m_usbDiscovery.Dispose(); m_usbDiscovery = null; } if (m_emulatorDiscovery != null) { m_emulatorDiscovery.Dispose(); m_emulatorDiscovery = null; } }
private void StartEvents() { ManagerRemote.LogLine("StartEvents"); if (m_usbDiscovery == null) { m_usbDiscovery = new _DBG.UsbDeviceDiscovery(); m_usbDiscovery.OnDeviceChanged += new _DBG.UsbDeviceDiscovery.DeviceChangedEventHandler(OnDeviceChanged); } if (m_emulatorDiscovery == null) { m_emulatorDiscovery = new _DBG.EmulatorDiscovery(); m_emulatorDiscovery.OnEmulatorChanged += new _DBG.EmulatorDiscovery.EmulatorChangedEventHandler(OnEmulatorChanged); } }
/// <summary> /// Default constructor /// </summary> public MFDeploy() { try { // Default to disabling legacy WinUSB enumeration so that only // WinUSB devices that explicitly advertise the NETMF Debug // Interface GUID are enumerated. (Eliminates false positives // of legacy mode that shows any WinUSB device that responds // to a query for a string with the display name Id (5) ) EnablePermiscuousWinUsb = false; m_usbDiscovery = new Microsoft.SPOT.Debugger.UsbDeviceDiscovery(); m_usbDiscovery.OnDeviceChanged += new Microsoft.SPOT.Debugger.UsbDeviceDiscovery.DeviceChangedEventHandler(OnDeviceListChanged); } catch //WMI may not be supported on the OS { } }
public Form1() : base() { // // Required for Windows Form Designer support // InitializeComponent(); // // need to add any constructor code after InitializeComponent call // m_callback_NewText = new NewTextCallback ( this.Callback_NewText ); m_callback_Progress = new ProgressCallback( this.Callback_Progress ); m_usbDiscovery = new _DBG.UsbDeviceDiscovery(); m_usbDiscovery.OnDeviceChanged += new _DBG.UsbDeviceDiscovery.DeviceChangedEventHandler( OnDeviceChanged ); }
public Form1() : base() { // // Required for Windows Form Designer support // InitializeComponent(); // // need to add any constructor code after InitializeComponent call // m_callback_NewText = new NewTextCallback(this.Callback_NewText); m_callback_Progress = new ProgressCallback(this.Callback_Progress); m_usbDiscovery = new _DBG.UsbDeviceDiscovery(); m_usbDiscovery.OnDeviceChanged += new _DBG.UsbDeviceDiscovery.DeviceChangedEventHandler(OnDeviceChanged); }
private void StopEvents() { ManagerRemote.LogLine( "StopEvents" ); if(m_usbDiscovery != null) { m_usbDiscovery.Dispose(); m_usbDiscovery = null; } if(m_emulatorDiscovery != null) { m_emulatorDiscovery.Dispose(); m_emulatorDiscovery = null; } }
private void StartEvents() { ManagerRemote.LogLine( "StartEvents" ); if(m_usbDiscovery == null) { m_usbDiscovery = new _DBG.UsbDeviceDiscovery(); m_usbDiscovery.OnDeviceChanged += new _DBG.UsbDeviceDiscovery.DeviceChangedEventHandler( OnDeviceChanged ); } if(m_emulatorDiscovery == null) { m_emulatorDiscovery = new _DBG.EmulatorDiscovery(); m_emulatorDiscovery.OnEmulatorChanged += new _DBG.EmulatorDiscovery.EmulatorChangedEventHandler( OnEmulatorChanged ); } }