using Newtonsoft.Json; using Prism.Mvvm; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TeamAAS_VP.Enums; namespace TeamAAS_VP.Models { [JsonObject(MemberSerialization.OptOut)] public class ProcedureOutput : BindableBase { public string Name { get; set; } public Type ValueType { get; set; } private bool _IsPointTran; public bool IsPointTran { get { return _IsPointTran; } set { SetProperty(ref _IsPointTran,value); } } [JsonIgnore] public bool IsAllowTran { get { if (ValueType== typeof(System.String) && (Name.Contains("Point") || Name.Contains("point"))) { return true; } return false; } } } [JsonObject(MemberSerialization.OptOut)] public class ProcedureOutputOpcAdr : BindableBase { private string name="opc"; public string Name { get => name; set { SetProperty(ref name, value); } } } }