Ejemplo n.º 1
0
        public void Dispose()
        {
            if (!isDisposed)
            {
                if (window != null)
                {
                    window.StateChanged -= new UsbStateChangedEventHandler(DoStateChanged);
                    window.Dispose();
                    window = null;
                }

                isDisposed = true;

                GC.SuppressFinalize(this);
            }
        }
Ejemplo n.º 2
0
        public void Dispose()
        {
            if (!isDisposed)
            {
                if (window != null)
                {
                    window.StateChanged -= new UsbStateChangedEventHandler(DoStateChanged);
                    window.Dispose();
                    window = null;
                }

                isDisposed = true;

                GC.SuppressFinalize(this);
            }
        }
Ejemplo n.º 3
0
 public UsbManager()
 {
     this.window = null;
     this.handler = null;
     this.isDisposed = false;
 }
Ejemplo n.º 4
0
 public UsbManager()
 {
     this.window     = null;
     this.handler    = null;
     this.isDisposed = false;
 }