终端一体化运控平台
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

37 lines
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. }