public override void LoadReference() { if(Look == null) Look = ReferenceHelper.GetReferenceObject(this, _reference) as XmlLook; if (string.IsNullOrEmpty(_reference)) _reference = ReferenceHelper.GetReferenceString(this); }
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 ""; }
public bool Equals(XmlLook l) { return(this.FileName.Equals(l.FileName) && this.Name.Equals(l.Name)); }
public bool Equals(XmlLook l) { return this.FileName.Equals(l.FileName) && this.Name.Equals(l.Name); }