Inheritance: XmlObjectNode, ILook
 public override void LoadReference()
 {
     if(Look == null)
         Look = ReferenceHelper.GetReferenceObject(this, _reference) as XmlLook;
     if (string.IsNullOrEmpty(_reference))
         _reference = ReferenceHelper.GetReferenceString(this);
 }
Exemplo n.º 2
0
        public override bool Equals(System.Object obj)
        {
            XmlLook l = obj as XmlLook;

            if ((object)l == null)
            {
                return(false);
            }

            return(this.Equals(l));
        }
 public override void LoadReference()
 {
     if (Look == null)
     {
         Look = ReferenceHelper.GetReferenceObject(this, _reference) as XmlLook;
     }
     if (string.IsNullOrEmpty(_reference))
     {
         _reference = ReferenceHelper.GetReferenceString(this);
     }
 }
        private static string GetLookReferenceString(XmlLook look)
        {
            var sprite = XmlParserTempProjectHelper.Sprite;

            var count = 0;
            foreach (var tempLook in sprite.Looks.Looks)
            {
                count++;
                if ((tempLook == look) && (count == 1))
                    return "../../../../../lookList/look";
                else if (tempLook == look)
                    return "../../../../../lookList/look[" + count + "]";
            }

            return "";
        }
Exemplo n.º 5
0
 public bool Equals(XmlLook l)
 {
     return(this.FileName.Equals(l.FileName) && this.Name.Equals(l.Name));
 }
Exemplo n.º 6
0
 public bool Equals(XmlLook l)
 {
     return this.FileName.Equals(l.FileName) && this.Name.Equals(l.Name);
 }