|
1234567891011121314151617181920212223242526272829 |
- using BPASmartClient.FoodStationTest.Model;
- using BPA.Helper;
-
- using System.Collections.ObjectModel;
- using System.Linq;
-
- namespace BPASmartClient.FoodStationTest.ViewModel
- {
- public class ManualCommViewModel : NotifyBase
- {
- public ManualCommViewModel()
- {
- PlcDataColl.Add(new VarMonitor() { SerialNum = PlcDataColl.Count, Address = "", });
- SetParCommand = new BPARelayCommand<object>((o) =>
- {
- if (o != null && o is string address)
- {
- var res = PlcDataColl.FirstOrDefault(p => p.Address == address);
- }
- });
- }
- public static ObservableCollection<VarMonitor> PlcDataColl { get; set; } = new ObservableCollection<VarMonitor>();
-
- public BPARelayCommand<object> SetParCommand { get; set; }
-
- public BPARelayCommand Connect { get; set; }
-
- }
- }
|