public void CopyShadowToPlain(Plc.stTreeStruct source) { One = source.One.Shadow; Two = source.Two.Shadow; Another = source.Another.Shadow; ThisOne = source.ThisOne.Shadow; ANumberWouldBeCool = source.ANumberWouldBeCool.Shadow; Bools.CopyShadowToPlain(source.Bools); }
public void CopyPlainToShadow(Plc.stTreeStruct target) { target.One.Shadow = One; target.Two.Shadow = Two; target.Another.Shadow = Another; target.ThisOne.Shadow = ThisOne; target.ANumberWouldBeCool.Shadow = ANumberWouldBeCool; Bools.CopyPlainToShadow(target.Bools); }
public void CopyCyclicToPlain(Plc.stTreeStruct source) { One = source.One.LastValue; Two = source.Two.LastValue; Another = source.Another.LastValue; ThisOne = source.ThisOne.LastValue; ANumberWouldBeCool = source.ANumberWouldBeCool.LastValue; Bools.CopyCyclicToPlain(source.Bools); }
public void CopyPlainToCyclic(Plc.stTreeStruct target) { target.One.Cyclic = One; target.Two.Cyclic = Two; target.Another.Cyclic = Another; target.ThisOne.Cyclic = ThisOne; target.ANumberWouldBeCool.Cyclic = ANumberWouldBeCool; Bools.CopyPlainToCyclic(target.Bools); }