终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

37 lines
1.2 KiB

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