public override bool Equals(object obj) { if (obj.GetType() == typeof(ImageNameSrcPair)) { ImageNameSrcPair srcPair = (ImageNameSrcPair)obj; return(srcPair.Name.Equals(this.Name) && srcPair.Src.Equals(this.Src)); } return(base.Equals(obj)); }
/// <summary> /// Adds an image to the current JsonImageSequence instance. /// </summary> /// <param name="imageName">The name to assign to the image. This can be used to /// get a reference to the image on the client using the JSUI.Images object hash.</param> /// <param name="src"></param> public void AddImage(string imageName, string src) { ImageNameSrcPair item = new ImageNameSrcPair(imageName, src); if (!images.Contains(item)) { images.Add(item); } }
/// <summary> /// Adds an image to the current JsonImageSequence instance. /// </summary> /// <param name="imageName">The name to assign to the image. This can be used to /// get a reference to the image on the client using the JSUI.Images object hash.</param> /// <param name="src"></param> public void AddImage(string imageName, string src) { ImageNameSrcPair item = new ImageNameSrcPair(imageName, src); if (!images.Contains(item)) images.Add(item); }