public override void LoadReference()
 {
     if(LoopBeginBrick == null)
         LoopBeginBrick = ReferenceHelper.GetReferenceObject(this, _reference) as XmlLoopBeginBrick;
     if (string.IsNullOrEmpty(_reference))
         _reference = ReferenceHelper.GetReferenceString(this);
 }
Ejemplo n.º 2
0
 public override void LoadReference()
 {
     if (LoopBeginBrick == null)
     {
         LoopBeginBrick = ReferenceHelper.GetReferenceObject(this, _reference) as XmlLoopBeginBrick;
     }
     if (string.IsNullOrEmpty(_reference))
     {
         _reference = ReferenceHelper.GetReferenceString(this);
     }
 }
Ejemplo n.º 3
0
        private static string GetRepeatBrickReferenceString(XmlLoopBeginBrick loopBeginBrick)
        {
            var sprite = XmlParserTempProjectHelper.Sprite;

            var script = XmlParserTempProjectHelper.Script;
            //TODO could this be dead code as since v93 there are no references like this?
                var count = 0;
                foreach (var brick in script.Bricks.Bricks)
                    if (brick is XmlRepeatBrick)
                    {
                        count++;
                        if ((brick == loopBeginBrick) && (count == 1))
                            return "../../repeatBrick";
                        else if (brick == loopBeginBrick)
                            return "../../repeatBrick[" + count + "]";
                    }
            return "";
        }