|
- using BPASmartClient.MorkTM.Model;
- using Microsoft.Toolkit.Mvvm.ComponentModel;
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace BPASmartClient.MorkTM.ViewModel
- {
- public class MonitorViewModel: ObservableObject
- {
- public ObservableCollection<Alarms> alarms { get; set; } = new ObservableCollection<Alarms>();
-
- public MonitorViewModel()
- {
- alarms.Add(new Alarms() { ID = "1", VarName = "1", ModbusTCP = "1", Notes = "1111", PLCAddress = "D1", Value = "33" });
- alarms.Add(new Alarms() { ID = "2", VarName = "2", ModbusTCP = "2", Notes = "2222", PLCAddress = "D2", Value = "33" });
- alarms.Add(new Alarms() { ID = "3", VarName = "3", ModbusTCP = "3", Notes = "3333", PLCAddress = "D2", Value = "33" });
-
-
-
-
- }
- }
- }
|