Beispiel #1
0
        /// <summary>
        /// The easiest way to use DriveDetector.
        /// It will create hidden form for processing Windows messages about USB drives
        /// You do not need to override WndProc in your form.
        /// </summary>
        public DriveDetector()
        {
            DetectorForm frm = new DetectorForm(this);

            //frm.Show(); // will be hidden immediatelly
            Init(frm, null);
        }
Beispiel #2
0
        public void Dispose()
        {
            if (_form == null)
            {
                return;
            }

            _form.Dispose();

            _form = null;
        }
Beispiel #3
0
 /// <summary>
 /// The easiest way to use DriveDetector. 
 /// It will create hidden form for processing Windows messages about USB drives
 /// You do not need to override WndProc in your form.
 /// </summary>
 public DriveDetector()
 {
     DetectorForm frm = new DetectorForm(this);
     frm.Show(); // will be hidden immediatelly
     Init(frm, null);
 }
Beispiel #4
0
        public DriveDetector()
        {
            _form = new DetectorForm(this);

            _form.Show();
        }