Ejemplo n.º 1
0
        public TagRWState()
        {
            PartBaseState = new Modular.Part.BaseState();

            ReadTagIDActionInfo  = new TagActionInfo();
            ReadPagesActionInfo  = new TagActionInfo();
            WritePagesActionInfo = new TagActionInfo();
            CombinedActionInfo   = new TagActionInfo();
        }
Ejemplo n.º 2
0
        public TagRWState SetFrom(ITagRWState other, bool asReadOnly = false)
        {
            NVS = (asReadOnly) ? other.NVS.ConvertToReadOnly(mapNullToEmpty: false) : (other.NVS.IsNullOrEmpty() ? null : new NamedValueSet(other.NVS));

            ReadTagIDActionInfo  = new TagActionInfo(other.ReadTagIDActionInfo);
            ReadPagesActionInfo  = new TagActionInfo(other.ReadPagesActionInfo);
            WritePagesActionInfo = new TagActionInfo(other.WritePagesActionInfo);
            CombinedActionInfo   = new TagActionInfo(other.CombinedActionInfo);

            PartBaseState = new BaseState(other.PartBaseState);

            return(this);
        }