|
@@ -19,6 +19,9 @@ public partial class MainWindowViewModel : ObservableObject
|
|
|
private readonly string _ipAddressFileName = "IpAddressInformation.json";
|
|
|
private readonly string _deviceInfoFileName = "DeviceInformation.json";
|
|
|
|
|
|
+ private int _count;
|
|
|
+ private Dictionary<string, object> _realtimeData = [];
|
|
|
+
|
|
|
[ObservableProperty]
|
|
|
private string _ipAddress = string.Empty;
|
|
|
|
|
@@ -182,6 +185,21 @@ public partial class MainWindowViewModel : ObservableObject
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ [RelayCommand]
|
|
|
+ private void Trigger()
|
|
|
+ {
|
|
|
+ try
|
|
|
+ {
|
|
|
+ _count++;
|
|
|
+ _realtimeData[_count.ToString()]=_count;
|
|
|
+ _clientService.UpdateRealTimeData(_realtimeData);
|
|
|
+ }
|
|
|
+ catch (Exception ex)
|
|
|
+ {
|
|
|
+ MessageBox.Show(ex.Message);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
private void Initialize()
|
|
|
{
|
|
|
if (!Directory.Exists(_settingsFolder))
|