Ejemplo n.º 1
0
 /// <summary>
 /// Gets the <see cref="Umbraco.Framework.HiveId"/> with the specified level. Not that this is not 0-indexed. This indexer is intended
 /// to be passed a <see cref="Level"/> where 0 is typically the Content root
 /// </summary>
 /// <value></value>
 public HiveId this[int i, bool includeSystemIds]
 {
     get
     {
         return(includeSystemIds ? TruePath.ElementAtOrDefault(i + 1) : NaturalPath.ElementAtOrDefault(i));
     }
 }
Ejemplo n.º 2
0
        public override void Deserialize(ElementPropertyBag epb)
        {
            base.Deserialize(epb);

            string truePath;

            if (Json.TryGetValue("TruePath", out truePath))
            {
                TruePath = (TruePath)Enum.Parse(typeof(TruePath), truePath);
            }
        }
Ejemplo n.º 3
0
 public DiamondProperties(Diamond el) : base(el)
 {
     TruePath = el.TruePath;
 }
Ejemplo n.º 4
0
 public AngleBracketBox(Canvas canvas) : base(canvas)
 {
     HasCornerConnections = false;
     TruePath             = TruePath.Down; // Default path for the true condition.
 }
Ejemplo n.º 5
0
 public AngleBracketBoxProperties(AngleBracketBox el) : base(el)
 {
     TruePath = el.TruePath;
 }