public CarrotGridImageColumn()
     : base()
 {
     this.ImagePairs       = new List <CarrotImageColumnData>();
     this.DefaultImagePath = HttpUtility.HtmlEncode(CarrotWeb.GetWebResourceUrl(this.GetType(), IconResourcePaperclip));
     this.Mode             = CarrotGridColumnType.ImageEnum;
 }
        public CarrotGridBooleanImageColumn()
            : base()
        {
            this.ImageAttributes = null;

            this.ImagePathTrue      = HttpUtility.HtmlEncode(CarrotWeb.GetWebResourceUrl(this.GetType(), IconResourceAffirm));
            this.ImagePathFalse     = HttpUtility.HtmlEncode(CarrotWeb.GetWebResourceUrl(this.GetType(), IconResourceNegative));
            this.AlternateTextTrue  = "True";
            this.AlternateTextFalse = "False";

            this.Mode = CarrotGridColumnType.BooleanImage;
        }
Ejemplo n.º 3
0
        public Captcha2()
        {
            this.AltValidationFailText = "Failed to validate image";
            this.Instructions          = "Select the name of the item shown in the image above from the list below.";

            this.ImageOptions = new Dictionary <string, string>();
            string imgPfx = "Carrotware.Web.UI.Components.captcha2";

            this.ImageOptions.Add(CarrotWeb.GetWebResourceUrl(this.GetType(), String.Format("{0}.bouquet.png", imgPfx)), "Bouquet");
            this.ImageOptions.Add(CarrotWeb.GetWebResourceUrl(this.GetType(), String.Format("{0}.pen.png", imgPfx)), "Pen");
            this.ImageOptions.Add(CarrotWeb.GetWebResourceUrl(this.GetType(), String.Format("{0}.pepper.png", imgPfx)), "Pepper");
            this.ImageOptions.Add(CarrotWeb.GetWebResourceUrl(this.GetType(), String.Format("{0}.scissors.png", imgPfx)), "Scissors");
            this.ImageOptions.Add(CarrotWeb.GetWebResourceUrl(this.GetType(), String.Format("{0}.snowflake.png", imgPfx)), "Snowflake");
            this.ImageOptions.Add(CarrotWeb.GetWebResourceUrl(this.GetType(), String.Format("{0}.web.png", imgPfx)), "Web");
        }
Ejemplo n.º 4
0
 public static string GetWebResourceUrl(Type type, string resource)
 {
     return(CarrotWeb.GetWebResourceUrl(type, resource));
 }
Ejemplo n.º 5
0
 public static string GetWebResourceUrl(string resource)
 {
     return(CarrotWeb.GetWebResourceUrl(typeof(jquerybasic), resource));
 }