diff options
Diffstat (limited to 'IvyProbe/IvyProbe.cs')
-rw-r--r-- | IvyProbe/IvyProbe.cs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/IvyProbe/IvyProbe.cs b/IvyProbe/IvyProbe.cs index 270dbd8..a066447 100644 --- a/IvyProbe/IvyProbe.cs +++ b/IvyProbe/IvyProbe.cs @@ -152,11 +152,6 @@ namespace IvyProbe bus.ivy.Start(busDomain.Domain);
}
- private void IvyProbe_FormClosed(object sender, FormClosedEventArgs e)
- {
- bus.ivy.Stop();
- }
-
private void IvyProbe_Load(object sender, EventArgs e)
{
bus.ivy.Start(busDomain.Domain);
@@ -168,6 +163,12 @@ namespace IvyProbe receive(sender, e);
}
+ private void IvyProbe_FormClosing(object sender, FormClosingEventArgs e)
+ {
+ bus.ivy.Stop();
+ e.Cancel = false;
+ }
+
}
}
\ No newline at end of file |