public XRefTO(CrossRef mdo) { if (mdo == null) { return; } this.dd = mdo.DD; this.fieldName = mdo.FieldName; this.fieldNumber = mdo.FieldNumber; if (mdo.File != null) { this.file = new VistaFileTO(mdo.File); } this.name = mdo.Name; }
public VistaFieldTO(VistaField mdo) { if (mdo == null) { return; } if (mdo.PointsTo != null) { this.pointsTo = new VistaFileTO(mdo.PointsTo); } this.isMultiple = mdo.IsMultiple; this.isPointer = mdo.IsPointer; this.isWordProc = mdo.IsWordProc; this.name = mdo.VistaName; this.nodePiece = mdo.VistaNode; this.number = mdo.VistaNumber; this.transform = mdo.Transform; this.type = mdo.Type; this.value = mdo.VistaValue; }