using BPA.Models.SqlEntity.BPA_Kitchen; using BPA.Helper; using BPASmartClient.JXJFoodBigStation.Model; using BPASmartClient.JXJFoodBigStation.View; using BPA.Helper; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BPASmartClient.JXJFoodBigStation.ViewModel { internal class DeviceManageViewModel:NotifyBase { public ObservableCollection Devices { get; set; } = new ObservableCollection() { new DeviceInfo { DeviceName = "123", IpAddress = "123.213.123.213." } }; public BPARelayCommand ChangeNameCommand { get; set; } public DeviceManageViewModel() { ChangeNameCommand = new BPARelayCommand((o) => { if (o != null && o is string str) { ChangeDeviceNameView cdn = new ChangeDeviceNameView(); ActionManage.GetInstance.Send("ChangeDeviceNameViewOpen", str); cdn.ShowDialog(); } }); } } }