internal HeuristicImage Create(ImageSrc i) { return(new HeuristicImage() { Img = i.Src }); }
public Emoticon(DataReaderWrap readerWrap) { this.EmoticonID = readerWrap.Get <int>("EmoticonID"); this.ImageSrc = readerWrap.Get <string>("ImageSrc"); this.FileSize = readerWrap.Get <int>("FileSize"); this.MD5 = readerWrap.Get <string>("MD5"); this.SortOrder = readerWrap.Get <int>("SortOrder"); this.GroupID = readerWrap.Get <int>("GroupID"); this.UserID = readerWrap.Get <int>("UserID"); this.Shortcut = readerWrap.Get <string>("Shortcut"); if (ImageSrc.IndexOf('/') != -1 || ImageSrc.IndexOf('\\') != -1) { ImageUrl = UrlUtil.ResolveUrl(ImageSrc); } else { ImageUrl = UrlUtil.JoinUrl(Globals.GetVirtualPath(SystemDirecotry.Upload_Emoticons), ImageSrc.Substring(0, 1), ImageSrc.Substring(1, 1), ImageSrc); ImageSrc = UrlUtil.JoinUrl(Globals.GetRelativeUrl(SystemDirecotry.Upload_Emoticons), ImageSrc.Substring(0, 1), ImageSrc.Substring(1, 1), ImageSrc); } loadFromDB = true; }
public bool IsUsingDefaultImage() { return(string.IsNullOrEmpty(ImageSrc) ? true : ImageSrc.Contains(Sweaty_T_Shirt.Controllers.ControllerHelpers.DefaultImageSrc)); }