diff --git a/src/client/DCSInsight/DCSInsight.csproj b/src/client/DCSInsight/DCSInsight.csproj
index 34c35d9..129e9f0 100644
--- a/src/client/DCSInsight/DCSInsight.csproj
+++ b/src/client/DCSInsight/DCSInsight.csproj
@@ -6,7 +6,7 @@
true
dcs-insight
1.0.0
- 1.6.0
+ 1.7.0
Images\Magnifier_icon.ico
diff --git a/src/client/DCSInsight/UserControls/UserControlAPI.xaml.cs b/src/client/DCSInsight/UserControls/UserControlAPI.xaml.cs
index 9978276..d130574 100644
--- a/src/client/DCSInsight/UserControls/UserControlAPI.xaml.cs
+++ b/src/client/DCSInsight/UserControls/UserControlAPI.xaml.cs
@@ -293,11 +293,11 @@ private void ButtonSend_OnClick(object sender, RoutedEventArgs e)
}
}
- private void StopPolling()
+ private void StartPolling(int milliseconds)
{
try
{
- _pollingTimer.Change(Timeout.Infinite, Timeout.Infinite);
+ _pollingTimer.Change(milliseconds, milliseconds);
SetFormState();
}
catch (Exception ex)
@@ -306,31 +306,31 @@ private void StopPolling()
}
}
- private void PollingTimerCallback(object state)
+ private void StopPolling()
{
try
{
- if (_canSend)
- {
- Dispatcher?.BeginInvoke((Action)(SendCommand));
- }
+ _pollingTimer.Change(Timeout.Infinite, Timeout.Infinite);
+ SetFormState();
}
catch (Exception ex)
{
- ICEventHandler.SendErrorMessage( "Timer Polling Error", ex);
+ Common.ShowErrorMessageBox(ex);
}
}
- private void StartPolling(int milliseconds)
+ private void PollingTimerCallback(object state)
{
try
{
- _pollingTimer.Change(milliseconds, milliseconds);
- SetFormState();
+ if (_canSend)
+ {
+ Dispatcher?.BeginInvoke((Action)(SendCommand));
+ }
}
catch (Exception ex)
{
- Common.ShowErrorMessageBox(ex);
+ ICEventHandler.SendErrorMessage( "Timer Polling Error", ex);
}
}
diff --git a/src/client/DCSInsight/Windows/WindowRangeTest.xaml b/src/client/DCSInsight/Windows/WindowRangeTest.xaml
index aadf858..69a7104 100644
--- a/src/client/DCSInsight/Windows/WindowRangeTest.xaml
+++ b/src/client/DCSInsight/Windows/WindowRangeTest.xaml
@@ -21,6 +21,7 @@
+