| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- 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); }
- }
- }
- }
|