Esempio n. 1
0
        /// <summary>
        /// Create hidden form for processing Windows messages about USB drives. You do not need to override WndProc in your form.
        /// </summary>
        public DeviceDetector(bool showForm)
        {
            var frm = new DeviceDetectorForm(this);

            if (showForm)
            {
                frm.Show();
            }
            _RecipientHandle = frm.Handle;
        }
Esempio n. 2
0
 /// <summary>
 /// Create hidden form for processing Windows messages about USB drives. You do not need to override WndProc in your form.
 /// </summary>
 public DeviceDetector(bool showForm)
 {
     var frm = new DeviceDetectorForm(this);
     if (showForm) frm.Show();
     _RecipientHandle = frm.Handle;
 }