fyf pirms 2 gadiem
vecāks
revīzija
418692d1bd
1 mainītis faili ar 6 papildinājumiem un 6 dzēšanām
  1. +6
    -6
      DataVAPI/UpAndDown/ProcessServer.cs

+ 6
- 6
DataVAPI/UpAndDown/ProcessServer.cs Parādīt failu

@@ -266,20 +266,20 @@ namespace DataVAPI.UpAndDown
if (receiveModel.status.value == "离线")
{
//离线移除并添加到最后一位
devModel.operatingDeviceStatus.data.Remove(dev);
devModel.operatingDeviceStatus.data.Add(dev);
index = devModel.operatingDeviceStatus.data.FindLastIndex(0, ar => ar.DeviceZT.Contains("在线"));
}
else
{
//在线 往上一点
index = devModel.operatingDeviceStatus.data.FindIndex(0, ar => ar.DeviceZT.Contains("离线"));
if (index > devModel.operatingDeviceStatus.data.Count - 1) index = devModel.operatingDeviceStatus.data.Count - 1;
int now = devModel.operatingDeviceStatus.data.IndexOf(dev);
Swap(devModel.operatingDeviceStatus.data, index, now);
}
int now = devModel.operatingDeviceStatus.data.IndexOf(dev);
Swap(devModel.operatingDeviceStatus.data, index, now);


}
else
{


Notiek ielāde…
Atcelt
Saglabāt