Exemplo 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);
            }
        }
Exemplo 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);
            }
        }
Exemplo n.º 3
0
 public UsbManager()
 {
     this.window = null;
     this.handler = null;
     this.isDisposed = false;
 }
Exemplo n.º 4
0
 public UsbManager()
 {
     this.window     = null;
     this.handler    = null;
     this.isDisposed = false;
 }