Ejemplo n.º 1
0
 protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options)
 {
     base.setJSON(obj, host, options);
     if (mPlacementRelTo != null)
     {
         obj["PlacementRelTo"] = PlacementRelTo.getJson(this, options);
     }
 }
Ejemplo n.º 2
0
        public override string GetStepParameters()
        {
            var parameters = new List <string>();

            parameters.Add(PlacementRelTo != null ? PlacementRelTo.ToStepValue() : "$");
            parameters.Add(RelativePlacement != null ? RelativePlacement.ToStepValue() : "$");

            return(string.Join(", ", parameters.ToArray()));
        }
Ejemplo n.º 3
0
 internal override void SetXML(XmlElement xml, BaseClassIfc host, HashSet <int> processed)
 {
     base.SetXML(xml, host, processed);
     if (mPlacementRelTo > 0)
     {
         xml.AppendChild(PlacementRelTo.GetXML(xml.OwnerDocument, "PlacementRelTo", this, processed));
     }
     xml.AppendChild(mDatabase[mRelativePlacement].GetXML(xml.OwnerDocument, "RelativePlacement", this, processed));
 }
Ejemplo n.º 4
0
        protected override void setJSON(JObject obj, BaseClassIfc host, HashSet <int> processed)
        {
            base.setJSON(obj, host, processed);

            if (mPlacementRelTo > 0)
            {
                obj["PlacementRelTo"] = PlacementRelTo.getJson(this, processed);
            }
            obj["RelativePlacement"] = mDatabase[mRelativePlacement].getJson(this, processed);
        }