pengliangyang 2 years ago
parent
commit
f1408c6aab
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      DosingSystem/Model/DeviceInquire.cs
  2. +1
    -1
      DosingSystem/ViewModel/DeviceListViewModel.cs

+ 1
- 1
DosingSystem/Model/DeviceInquire.cs View File

@@ -57,7 +57,7 @@ namespace BPASmartClient.DosingSystem.Model
int deviceIndex = Array.FindIndex(devices.ToArray(), p => p.IpAddress == DeviceLists.ElementAt(i).Key);
if (deviceIndex >= 0 && deviceIndex < devices.Count)
{
devices.ElementAt(i).DeviceName = DeviceLists.ElementAt(i).Value.DeviceName;
devices.ElementAt(deviceIndex).DeviceName = DeviceLists.ElementAt(i).Value.DeviceName;
}
}
Thread.Sleep(200);


+ 1
- 1
DosingSystem/ViewModel/DeviceListViewModel.cs View File

@@ -33,7 +33,7 @@ namespace BPASmartClient.DosingSystem.ViewModel
public RelayCommand<object> ChangeNameCommand { get; set; }

//public static ObservableCollection<Devices> devices { get; set; } = new ObservableCollection<Devices>();
public static ObservableCollection<Devices> devices { get; set; }
public ObservableCollection<Devices> devices { get; set; }
}

public class Devices : ObservableObject


Loading…
Cancel
Save