Explorar el Código

调试修改

样式分支
pry hace 2 años
padre
commit
0b075d3ad1
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. +1
    -1
      DosingSystem/Model/DeviceInquire.cs
  2. +1
    -1
      DosingSystem/ViewModel/DeviceListViewModel.cs

+ 1
- 1
DosingSystem/Model/DeviceInquire.cs Ver fichero

@@ -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 Ver fichero

@@ -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


Cargando…
Cancelar
Guardar