|
123456789101112131415161718192021222324252627282930313233343536373839 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using BPA.Helper;
- using System.Collections.ObjectModel;
- using BPASmartClient.JXJFoodSmallStation.Model;
- using BPA.Helper;
-
- using BPASmartClient.CustomResource.UserControls.MessageShow;
- using BPASmartClient.CustomResource.UserControls;
- using System.Diagnostics;
- using BPASmartClient.JXJFoodSmallStation.Model.Siemens;
- using BPASmartClient.JXJFoodSmallStation.Model.HK_PLC;
-
- namespace BPASmartClient.JXJFoodSmallStation.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; }
-
- }
- }
|