⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imagegallery.cs

📁 Freetextbox是优秀的在线编辑器
💻 CS
📖 第 1 页 / 共 3 页
字号:
            }
            set
            {
                this.ViewState["AllowDirectoryCreate"] = value;
            }
        }

        [Description("Gets or sets if directory deleting is allowed."), Category("Behavior")]
        public bool AllowDirectoryDelete
        {
            get
            {
                object obj1 = this.ViewState["AllowDirectoryDelete"];
                return ((obj1 == null) || ((bool) obj1));
            }
            set
            {
                this.ViewState["AllowDirectoryDelete"] = value;
            }
        }

        [Description("Gets or sets if file deleting is allowed."), Category("Behavior")]
        public bool AllowImageDelete
        {
            get
            {
                object obj1 = this.ViewState["AllowImageDelete"];
                return ((obj1 == null) || ((bool) obj1));
            }
            set
            {
                this.ViewState["AllowImageDelete"] = value;
            }
        }

        [Category("Behavior"), Description("Gets or sets if uploading files is allowed.")]
        public bool AllowImageUpload
        {
            get
            {
                object obj1 = this.ViewState["AllowImageUpload"];
                return ((obj1 == null) || ((bool) obj1));
            }
            set
            {
                this.ViewState["AllowImageUpload"] = value;
            }
        }

        [Category("Behavior")]
        public string AssemblyResourceHandlerPath
        {
            get
            {
                object obj1 = this.ViewState["AssemblyResourceHandlerPath"];
                return ((obj1 == null) ? base.ResolveUrl("~/") : ((string) obj1));
            }
            set
            {
                this.ViewState["AssemblyResourceHandlerPath"] = value;
            }
        }

        [Description("Sets the current folders used (overrides the default read)."), Category("Behavior")]
        public string[] CurrentDirectories
        {
            set
            {
                this._currentDirectories = value;
            }
        }

        [Description("Sets the current images used (overrides the default read)."), Category("Behavior")]
        public FileInfo[] CurrentImages
        {
            set
            {
                this._currentImages = value;
            }
        }

        [Description("Gets or sets the current folder the user is browsing."), Category("Behavior")]
        public string CurrentImagesFolder
        {
            get
            {
                object obj1 = this.ViewState["CurrentImagesFolder"];
                if (obj1 == null)
                {
                    return "~/images";
                }
                string text1 = (string) obj1;
                text1 = text1.Replace(@"\", "/");
                while (text1.IndexOf("//") > -1)
                {
                    text1 = text1.Replace("//", "/");
                }
                while (text1.EndsWith("/"))
                {
                    text1 = text1.Substring(0, text1.Length - 1);
                }
                return text1;
            }
            set
            {
                this.ViewState["CurrentImagesFolder"] = value;
            }
        }

        public ResourceLocation JavaScriptLocation
        {
            get
            {
                object obj1 = this.ViewState["JavaScriptLocation"];
                return ((obj1 == null) ? ResourceLocation.InternalResource : ((ResourceLocation) obj1));
            }
            set
            {
                this.ViewState["JavaScriptLocation"] = value;
            }
        }

        [Description("Gets or sets the root folder where images are stored."), Category("Behavior")]
        public string RootImagesFolder
        {
            get
            {
                object obj1 = this.ViewState["RootImagesFolder"];
                if (obj1 == null)
                {
                    return "~/images";
                }
                string text1 = (string) obj1;
                text1 = text1.Replace(@"\", "/");
                while (text1.IndexOf("//") > -1)
                {
                    text1 = text1.Replace("//", "/");
                }
                while (text1.EndsWith("/"))
                {
                    text1 = text1.Substring(0, text1.Length - 1);
                }
                return text1;
            }
            set
            {
                this.ViewState["RootImagesFolder"] = value;
            }
        }

        [Description("Gets or sets where the helper "), Category("Behavior")]
        public string SupportFolder
        {
            get
            {
                object obj1 = this.ViewState["SupportFolder"];
                return ((obj1 == null) ? "/aspnet_client/FreeTextBox/" : ((string) obj1));
            }
            set
            {
                this.ViewState["SupportFolder"] = value;
            }
        }

        [Category("Behavior"), Description("Gets or sets the FreeTextBox to insert images into.")]
        public string TargetFreeTextBox
        {
            get
            {
                object obj1 = this.ViewState["TargetFreeTextBox"];
                return ((obj1 == null) ? "" : ((string) obj1));
            }
            set
            {
                this.ViewState["TargetFreeTextBox"] = value;
            }
        }

        [Description("Gets or sets the maximum height of thumbnails."), Category("Thumbnails")]
        public int ThumbnailHeight
        {
            get
            {
                object obj1 = this.ViewState["ThumbnailHeight"];
                return ((obj1 == null) ? 0x5e : ((int) obj1));
            }
            set
            {
                this.ViewState["ThumbnailHeight"] = value;
            }
        }

        [Category("Thumbnails"), Description("Gets or sets the maximum width of thumbnails.")]
        public int ThumbnailWidth
        {
            get
            {
                object obj1 = this.ViewState["ThumbnailWidth"];
                return ((obj1 == null) ? 0x5e : ((int) obj1));
            }
            set
            {
                this.ViewState["ThumbnailWidth"] = value;
            }
        }

        public ResourceLocation UtilityImagesLocation
        {
            get
            {
                object obj1 = this.ViewState["UtilityImagesLocation"];
                return ((obj1 == null) ? ResourceLocation.InternalResource : ((ResourceLocation) obj1));
            }
            set
            {
                this.ViewState["UtilityImagesLocation"] = value;
            }
        }


        private string[] _currentDirectories;
        private FileInfo[] _currentImages;
        private BrowserInfo browserInfo;
        private HttpContext context;
        protected HtmlInputFile inputFile;
        protected int MaxThumbnailHeight;
        protected int MaxThumbnailWidth;
        private HttpRequest request;
        private HttpResponse response;
        protected string returnMessage;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -