Example #1
0
 /// <summary>
 /// Renders the contents of the control to the specified writer. This method is used primarily by control developers.
 /// </summary>
 /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
 protected override void RenderContents(HtmlTextWriter writer)
 {
     // add property fields
     writer.AddPrevalueHeading("Cloud Files API Settings", "Add your Rackspace Cloud Files API token and username here");
     writer.AddPrevalueRow("Username:"******"API Token:", this.txtApiKey);
     writer.AddPrevalueHeading("Container Settings", "Select your default container from the dropdown");
     writer.AddPrevalueRow("Default Container <em>(optional)</em>:", this.ddlDefaultContainer);
 }
Example #2
0
        /// <summary>
        /// Renders the contents of the control to the specified writer. This method is used primarily by control developers.
        /// </summary>
        /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
        protected override void RenderContents(HtmlTextWriter writer)
        {
            writer.AddPrevalueHeading("Columns");
            writer.AddPrevalueRow("Show Column Labels?", "Enter a label for each column; you may also use dictionary item syntax (e.g. <code>[#dictionaryItem]</code>). (Optional - blank labels are acceptable)", this.CheckBoxShowColumnLabels);
            writer.AddPrevalueRow("Labels:", this.MtcContainer);

            writer.AddPrevalueHeading("Rows");
            writer.AddPrevalueRow("Minimum:", "Minimum number of rows to display.", this.TextBoxMinimumRows);
            writer.AddPrevalueRow("Maximum:", "Maximum number of rows to display. Use -1 for unlimited rows.", this.TextBoxMaximumRows);
            writer.AddPrevalueRow("Disable sorting?", "Disables the ability to sort the rows.", this.CheckBoxDisableSorting);
        }
Example #3
0
 /// <summary>
 /// Renders the contents of the control to the specified writer. This method is used primarily by control developers.
 /// </summary>
 /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
 protected override void RenderContents(HtmlTextWriter writer)
 {
     // add property fields
     writer.AddPrevalueHeading("Cloud Files API Settings", "Add your Rackspace Cloud Files API token and username here");
     writer.AddPrevalueRow("Username:"******"API Token:", this.txtApiKey);
     writer.AddPrevalueRow("Show File Meta Data:", this.chkShowMetaData);
     writer.AddPrevalueHeading("Container Settings", "Enter the property alias of the container datatype or select your default container from the dropdown");
     writer.AddPrevalueRow("Default Container Property Alias:", this.txtDefaultAlias);
     writer.AddPrevalueRow("Default Container:", this.ddlDefaultContainer);
 }
Example #4
0
 /// <summary>
 /// Renders the contents of the control to the specified writer. This method is used primarily by control developers.
 /// </summary>
 /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
 protected override void RenderContents(HtmlTextWriter writer)
 {
     // add property fields
     writer.AddPrevalueHeading("Cloud Files API Settings", "Add your Rackspace Cloud Files API token and username here");
     writer.AddPrevalueRow("Username:"******"API Token:", this.txtApiKey);
     writer.AddPrevalueRow("Show Meta Data:", this.chkShowMetaData);
 }
Example #5
0
 /// <summary>
 /// Renders the contents of the control to the specified writer. This method is used primarily by control developers.
 /// </summary>
 /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
 protected override void RenderContents(HtmlTextWriter writer)
 {
     // add property fields
     writer.AddPrevalueHeading("Azure CDN API Settings");
     writer.AddPrevalueRow("", "Add your Azure account information here.");
     writer.AddPrevalueRow("Account Name:", this.txtAccountName);
     writer.AddPrevalueRow("Key:", this.txtKey);
 }
Example #6
0
 /// <summary>
 /// Renders the contents of the control to the specified writer. This method is used primarily by control developers.
 /// </summary>
 /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
 protected override void RenderContents(HtmlTextWriter writer)
 {
     // add property fields
     writer.AddPrevalueHeading("Amazon S3 and Cloud Front API Settings");
     writer.AddPrevalueRow("", "Add your Amazon account information here.");
     writer.AddPrevalueRow("Access Key:", this.txtAccessKey);
     writer.AddPrevalueRow("Secret Key:", this.txtSecretKey);
 }
Example #7
0
 /// <summary>
 /// Renders the contents of the control to the specified writer. This method is used primarily by control developers.
 /// </summary>
 /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
 protected override void RenderContents(HtmlTextWriter writer)
 {
     // add property fields
     writer.AddPrevalueHeading("<img src='" + Page.ClientScript.GetWebResourceUrl(typeof(IRImagePickerDataEditor), "Our.Umbraco.IRImagePicker.Resources.Images.ir_logo.png") + "' alt='Image Resizer' style='width:200px;margin:0 0 5px 130px;' />");
     writer.AddPrevalueRow("Image Dimensions", "Enter the width and height for the selected image.", txtWidth, new LiteralControl(" x "), txtHeight);
     writer.AddPrevalueRow("Thumb Width", "Set the width of the thumbnail to show in the editor.", txtThumbWidth);
     writer.AddPrevalueRow("Auto Launch Croppper", "Select whether to auto launch the cropper after an image is picked.", chkAutoLaunchCropper);
     writer.AddPrevalueRow("Data format", "Select the data format in which to store the value of this data type in.<br />XML if you intend to work with it in XSLT or JSON if you intend to work with it via Razor or C#.", rdoDataFormat);
 }
 /// <summary>
 ///   Sends server control content to a provided <see cref = "T:System.Web.UI.HtmlTextWriter" /> object,
 ///   which writes the content to be rendered on the client.
 /// </summary>
 /// <param name = "writer">The <see cref = "T:System.Web.UI.HtmlTextWriter" /> object that receives the server control content.</param>
 protected override void Render(HtmlTextWriter writer)
 {
     writer.AddAttribute(HtmlTextWriterAttribute.Class, "imageResizerPreValues");
     writer.RenderBeginTag(HtmlTextWriterTag.Div); //start 'imageResizerPreValues'
     writer.AddPrevalueHeading("Image Resizer");
     writer.AddPrevalueRow("Property Alias", "Alias of image property  (eg. 'umbracoFile'):", PropertyAliasTextBox);
     writer.AddPrevalueRow("Width", "Maximum width of generated image", MaxWidthTextBox);
     writer.AddPrevalueRow("Height", "Maximum height of generated image", MaxHeightTextBox);
     writer.AddPrevalueRow("", "<p>Aspect ratio is maintained during image resizing.</br>Landscape will restrict to Width<br/>Portrait will restrict to Height</p>");
     writer.RenderEndTag(); // end 'imageResizerPreValues'
 }
Example #9
0
        protected override void RenderContents(HtmlTextWriter writer)
        {
            // add data fields
            writer.AddPrevalueRow("Save Video Data:", "Enabling this option, the data-type to store the raw XML video data from YouTube. Disabling it will only store the video id.", this.cbSaveVideoData);

            // add preview fields
            writer.AddPrevalueHeading("Preview Options");
            writer.AddPrevalueRow("Enable preview:", this.cbEnablePreview);
            writer.AddPrevalueRow("Preview height:", this.txtPreviewHeight);
            writer.AddPrevalueRow("Preview width:", this.txtPreviewWidth);
        }
 /// <summary>
 /// Adds the prevalue row heading.
 /// </summary>
 /// <param name="writer">The writer.</param>
 /// <param name="heading">The heading.</param>
 public static void AddPrevalueHeading(this HtmlTextWriter writer, string heading)
 {
     writer.AddPrevalueHeading(heading, string.Empty);
 }