终端一体化运控平台
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

37 linhas
1.1 KiB

  1. using BPA.Models.SqlEntity.BPA_Kitchen;
  2. using BPA.Helper;
  3. using BPASmartClient.JXJFoodBigStation.Model;
  4. using BPASmartClient.JXJFoodBigStation.View;
  5. using BPA.Helper;
  6. using System;
  7. using System.Collections.Generic;
  8. using System.Collections.ObjectModel;
  9. using System.Linq;
  10. using System.Text;
  11. using System.Threading.Tasks;
  12. namespace BPASmartClient.JXJFoodBigStation.ViewModel
  13. {
  14. internal class DeviceManageViewModel:NotifyBase
  15. {
  16. public ObservableCollection<DeviceInfo> Devices { get; set; } = new ObservableCollection<DeviceInfo>() { new DeviceInfo { DeviceName = "123", IpAddress = "123.213.123.213." } };
  17. public BPARelayCommand<object> ChangeNameCommand { get; set; }
  18. public DeviceManageViewModel()
  19. {
  20. ChangeNameCommand = new BPARelayCommand<object>((o) =>
  21. {
  22. if (o != null && o is string str)
  23. {
  24. ChangeDeviceNameView cdn = new ChangeDeviceNameView();
  25. ActionManage.GetInstance.Send("ChangeDeviceNameViewOpen", str);
  26. cdn.ShowDialog();
  27. }
  28. });
  29. }
  30. }
  31. }