Пример #1
0
        public void Dispose()
        {
            if (!isDisposed)
            {
                if (window != null)
                {
                    window.StateChanged -= new UsbStateChangedEventHandler(DoStateChanged);
                    window.Dispose();
                    window = null;
                }

                isDisposed = true;

                GC.SuppressFinalize(this);
            }
        }
Пример #2
0
        public void Dispose()
        {
            if (!isDisposed)
            {
                if (window != null)
                {
                    window.StateChanged -= new UsbStateChangedEventHandler(DoStateChanged);
                    window.Dispose();
                    window = null;
                }

                isDisposed = true;

                GC.SuppressFinalize(this);
            }
        }
Пример #3
0
 public UsbManager()
 {
     this.window = null;
     this.handler = null;
     this.isDisposed = false;
 }
Пример #4
0
 public UsbManager()
 {
     this.window     = null;
     this.handler    = null;
     this.isDisposed = false;
 }