diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-03-18 21:38:42 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-03-18 21:57:50 +0300 |
commit | 84503d3af44292d12e80942b22c9f5d6babd85e6 (patch) | |
tree | c4f4e46ea5fa8c078334446d186dd12a926fa602 /WaitingFelForm.cs | |
parent | 038fa810f90f4c26eeb4539e6f60e6bf7db049a2 (diff) |
Should work on all Windows versions now
Diffstat (limited to 'WaitingFelForm.cs')
-rw-r--r-- | WaitingFelForm.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/WaitingFelForm.cs b/WaitingFelForm.cs index 072d9c4a..e84aa45f 100644 --- a/WaitingFelForm.cs +++ b/WaitingFelForm.cs @@ -21,11 +21,11 @@ namespace com.clusterrr.hakchi_gui timer.Enabled = true;
}
- public static bool WaitForDevice(UInt16 vid, UInt16 pid)
+ public static bool WaitForDevice(UInt16 vid, UInt16 pid, IWin32Window owner)
{
if (Fel.DeviceExists(vid, pid)) return true;
var form = new WaitingFelForm(vid, pid);
- form.ShowDialog();
+ form.ShowDialog(owner);
return form.DialogResult == DialogResult.OK;
}
|