Click here to Skip to main content
15,896,154 members
Articles / Programming Languages / C#

Amazon S3 Sync

Rate me:
Please Sign up or sign in to vote.
4.92/5 (6 votes)
1 Dec 2010Apache5 min read 48K   1.6K   23  
Synchronize files from your computer to Amazon S3.
namespace S3UploadDownload
{
    partial class FormUploadEstimate
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.Label22 = new System.Windows.Forms.Label();
            this.Label21 = new System.Windows.Forms.Label();
            this.StatusStrip1 = new System.Windows.Forms.StatusStrip();
            this.ToolStripStatusLabelAction = new System.Windows.Forms.ToolStripStatusLabel();
            this.ToolStripProgressBar = new System.Windows.Forms.ToolStripProgressBar();
            this.ToolStripStatusLabelBytes = new System.Windows.Forms.ToolStripStatusLabel();
            this.ToolStripStatusLabelSpeed = new System.Windows.Forms.ToolStripStatusLabel();
            this.ToolStripStatusLabelElapsed = new System.Windows.Forms.ToolStripStatusLabel();
            this.ToolStripStatusLabelRemaining = new System.Windows.Forms.ToolStripStatusLabel();
            this.ButtonAbort = new System.Windows.Forms.Button();
            this.CheckBoxUploadMakePublic = new System.Windows.Forms.CheckBox();
            this.TextBoxUploadContentType = new System.Windows.Forms.TextBox();
            this.Label20 = new System.Windows.Forms.Label();
            this.GroupBox1 = new System.Windows.Forms.GroupBox();
            this.ButtonUploadBrowse = new System.Windows.Forms.Button();
            this.TextBoxUploadKeyName = new System.Windows.Forms.TextBox();
            this.TextBoxUploadBucketName = new System.Windows.Forms.TextBox();
            this.TextBoxUploadFileName = new System.Windows.Forms.TextBox();
            this.Label9 = new System.Windows.Forms.Label();
            this.Label8 = new System.Windows.Forms.Label();
            this.Label7 = new System.Windows.Forms.Label();
            this.Label18 = new System.Windows.Forms.Label();
            this.ButtonUploadFile = new System.Windows.Forms.Button();
            this.StatusStrip1.SuspendLayout();
            this.GroupBox1.SuspendLayout();
            this.SuspendLayout();
            // 
            // Label22
            // 
            this.Label22.AutoSize = true;
            this.Label22.Location = new System.Drawing.Point(409, 105);
            this.Label22.Name = "Label22";
            this.Label22.Size = new System.Drawing.Size(52, 13);
            this.Label22.TabIndex = 113;
            this.Label22.Text = "(Optional)";
            // 
            // Label21
            // 
            this.Label21.AutoSize = true;
            this.Label21.Location = new System.Drawing.Point(7, 132);
            this.Label21.Name = "Label21";
            this.Label21.Size = new System.Drawing.Size(66, 13);
            this.Label21.TabIndex = 112;
            this.Label21.Text = "Make Public";
            // 
            // StatusStrip1
            // 
            this.StatusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.ToolStripStatusLabelAction,
            this.ToolStripProgressBar,
            this.ToolStripStatusLabelBytes,
            this.ToolStripStatusLabelSpeed,
            this.ToolStripStatusLabelElapsed,
            this.ToolStripStatusLabelRemaining});
            this.StatusStrip1.Location = new System.Drawing.Point(0, 256);
            this.StatusStrip1.Name = "StatusStrip1";
            this.StatusStrip1.Size = new System.Drawing.Size(520, 22);
            this.StatusStrip1.SizingGrip = false;
            this.StatusStrip1.TabIndex = 118;
            this.StatusStrip1.Text = "StatusStrip1";
            // 
            // ToolStripStatusLabelAction
            // 
            this.ToolStripStatusLabelAction.Name = "ToolStripStatusLabelAction";
            this.ToolStripStatusLabelAction.Size = new System.Drawing.Size(135, 17);
            this.ToolStripStatusLabelAction.Text = "Calculating MD5 hash....";
            this.ToolStripStatusLabelAction.Visible = false;
            // 
            // ToolStripProgressBar
            // 
            this.ToolStripProgressBar.AutoSize = false;
            this.ToolStripProgressBar.Name = "ToolStripProgressBar";
            this.ToolStripProgressBar.Size = new System.Drawing.Size(100, 16);
            this.ToolStripProgressBar.Visible = false;
            // 
            // ToolStripStatusLabelBytes
            // 
            this.ToolStripStatusLabelBytes.AutoSize = false;
            this.ToolStripStatusLabelBytes.Name = "ToolStripStatusLabelBytes";
            this.ToolStripStatusLabelBytes.Size = new System.Drawing.Size(100, 17);
            this.ToolStripStatusLabelBytes.Text = "0 bytes / 0 bytes";
            this.ToolStripStatusLabelBytes.Visible = false;
            // 
            // ToolStripStatusLabelSpeed
            // 
            this.ToolStripStatusLabelSpeed.AutoSize = false;
            this.ToolStripStatusLabelSpeed.Name = "ToolStripStatusLabelSpeed";
            this.ToolStripStatusLabelSpeed.Size = new System.Drawing.Size(80, 17);
            this.ToolStripStatusLabelSpeed.Text = "0 KB/s";
            this.ToolStripStatusLabelSpeed.Visible = false;
            // 
            // ToolStripStatusLabelElapsed
            // 
            this.ToolStripStatusLabelElapsed.AutoSize = false;
            this.ToolStripStatusLabelElapsed.Name = "ToolStripStatusLabelElapsed";
            this.ToolStripStatusLabelElapsed.Size = new System.Drawing.Size(120, 17);
            this.ToolStripStatusLabelElapsed.Text = "00:00:00 elapsed";
            this.ToolStripStatusLabelElapsed.Visible = false;
            // 
            // ToolStripStatusLabelRemaining
            // 
            this.ToolStripStatusLabelRemaining.AutoSize = false;
            this.ToolStripStatusLabelRemaining.Name = "ToolStripStatusLabelRemaining";
            this.ToolStripStatusLabelRemaining.Size = new System.Drawing.Size(120, 17);
            this.ToolStripStatusLabelRemaining.Text = "00:00:00 remaining";
            this.ToolStripStatusLabelRemaining.Visible = false;
            // 
            // ButtonAbort
            // 
            this.ButtonAbort.Enabled = false;
            this.ButtonAbort.Location = new System.Drawing.Point(271, 214);
            this.ButtonAbort.Name = "ButtonAbort";
            this.ButtonAbort.Size = new System.Drawing.Size(96, 23);
            this.ButtonAbort.TabIndex = 116;
            this.ButtonAbort.Text = "Abort";
            this.ButtonAbort.UseVisualStyleBackColor = true;
            this.ButtonAbort.Click += new System.EventHandler(this.ButtonAbort_Click);
            // 
            // CheckBoxUploadMakePublic
            // 
            this.CheckBoxUploadMakePublic.AutoSize = true;
            this.CheckBoxUploadMakePublic.Location = new System.Drawing.Point(96, 133);
            this.CheckBoxUploadMakePublic.Name = "CheckBoxUploadMakePublic";
            this.CheckBoxUploadMakePublic.Size = new System.Drawing.Size(15, 14);
            this.CheckBoxUploadMakePublic.TabIndex = 111;
            this.CheckBoxUploadMakePublic.UseVisualStyleBackColor = true;
            // 
            // TextBoxUploadContentType
            // 
            this.TextBoxUploadContentType.Location = new System.Drawing.Point(96, 102);
            this.TextBoxUploadContentType.Name = "TextBoxUploadContentType";
            this.TextBoxUploadContentType.Size = new System.Drawing.Size(310, 20);
            this.TextBoxUploadContentType.TabIndex = 110;
            // 
            // Label20
            // 
            this.Label20.AutoSize = true;
            this.Label20.Location = new System.Drawing.Point(7, 105);
            this.Label20.Name = "Label20";
            this.Label20.Size = new System.Drawing.Size(71, 13);
            this.Label20.TabIndex = 109;
            this.Label20.Text = "Content-Type";
            // 
            // GroupBox1
            // 
            this.GroupBox1.Controls.Add(this.Label22);
            this.GroupBox1.Controls.Add(this.Label21);
            this.GroupBox1.Controls.Add(this.CheckBoxUploadMakePublic);
            this.GroupBox1.Controls.Add(this.TextBoxUploadContentType);
            this.GroupBox1.Controls.Add(this.Label20);
            this.GroupBox1.Controls.Add(this.ButtonUploadBrowse);
            this.GroupBox1.Controls.Add(this.TextBoxUploadKeyName);
            this.GroupBox1.Controls.Add(this.TextBoxUploadBucketName);
            this.GroupBox1.Controls.Add(this.TextBoxUploadFileName);
            this.GroupBox1.Controls.Add(this.Label9);
            this.GroupBox1.Controls.Add(this.Label8);
            this.GroupBox1.Controls.Add(this.Label7);
            this.GroupBox1.Location = new System.Drawing.Point(15, 40);
            this.GroupBox1.Name = "GroupBox1";
            this.GroupBox1.Size = new System.Drawing.Size(493, 162);
            this.GroupBox1.TabIndex = 117;
            this.GroupBox1.TabStop = false;
            this.GroupBox1.Text = "Upload Options";
            // 
            // ButtonUploadBrowse
            // 
            this.ButtonUploadBrowse.Location = new System.Drawing.Point(412, 22);
            this.ButtonUploadBrowse.Name = "ButtonUploadBrowse";
            this.ButtonUploadBrowse.Size = new System.Drawing.Size(75, 23);
            this.ButtonUploadBrowse.TabIndex = 103;
            this.ButtonUploadBrowse.Text = "Browse";
            this.ButtonUploadBrowse.UseVisualStyleBackColor = true;
            this.ButtonUploadBrowse.Click += new System.EventHandler(this.ButtonUploadBrowse_Click);
            // 
            // TextBoxUploadKeyName
            // 
            this.TextBoxUploadKeyName.Location = new System.Drawing.Point(96, 76);
            this.TextBoxUploadKeyName.Name = "TextBoxUploadKeyName";
            this.TextBoxUploadKeyName.Size = new System.Drawing.Size(310, 20);
            this.TextBoxUploadKeyName.TabIndex = 105;
            // 
            // TextBoxUploadBucketName
            // 
            this.TextBoxUploadBucketName.Location = new System.Drawing.Point(96, 50);
            this.TextBoxUploadBucketName.Name = "TextBoxUploadBucketName";
            this.TextBoxUploadBucketName.Size = new System.Drawing.Size(310, 20);
            this.TextBoxUploadBucketName.TabIndex = 104;
            // 
            // TextBoxUploadFileName
            // 
            this.TextBoxUploadFileName.Location = new System.Drawing.Point(96, 24);
            this.TextBoxUploadFileName.Name = "TextBoxUploadFileName";
            this.TextBoxUploadFileName.Size = new System.Drawing.Size(310, 20);
            this.TextBoxUploadFileName.TabIndex = 102;
            // 
            // Label9
            // 
            this.Label9.AutoSize = true;
            this.Label9.Location = new System.Drawing.Point(7, 79);
            this.Label9.Name = "Label9";
            this.Label9.Size = new System.Drawing.Size(56, 13);
            this.Label9.TabIndex = 108;
            this.Label9.Text = "Key Name";
            // 
            // Label8
            // 
            this.Label8.AutoSize = true;
            this.Label8.Location = new System.Drawing.Point(7, 53);
            this.Label8.Name = "Label8";
            this.Label8.Size = new System.Drawing.Size(72, 13);
            this.Label8.TabIndex = 107;
            this.Label8.Text = "Bucket Name";
            // 
            // Label7
            // 
            this.Label7.AutoSize = true;
            this.Label7.Location = new System.Drawing.Point(7, 27);
            this.Label7.Name = "Label7";
            this.Label7.Size = new System.Drawing.Size(83, 13);
            this.Label7.TabIndex = 106;
            this.Label7.Text = "Local File Name";
            // 
            // Label18
            // 
            this.Label18.Location = new System.Drawing.Point(12, 5);
            this.Label18.Name = "Label18";
            this.Label18.Size = new System.Drawing.Size(496, 48);
            this.Label18.TabIndex = 114;
            this.Label18.Text = "The following example uses the UploadEstimate class to upload a file.  This class" +
                " calculates the current speed of the upload and time remaining for the upload.";
            // 
            // ButtonUploadFile
            // 
            this.ButtonUploadFile.Location = new System.Drawing.Point(153, 214);
            this.ButtonUploadFile.Name = "ButtonUploadFile";
            this.ButtonUploadFile.Size = new System.Drawing.Size(96, 23);
            this.ButtonUploadFile.TabIndex = 115;
            this.ButtonUploadFile.Text = "Start Upload";
            this.ButtonUploadFile.UseVisualStyleBackColor = true;
            this.ButtonUploadFile.Click += new System.EventHandler(this.ButtonUploadFile_Click);
            // 
            // FormUploadEstimate
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(520, 278);
            this.Controls.Add(this.StatusStrip1);
            this.Controls.Add(this.ButtonAbort);
            this.Controls.Add(this.GroupBox1);
            this.Controls.Add(this.Label18);
            this.Controls.Add(this.ButtonUploadFile);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "FormUploadEstimate";
            this.ShowInTaskbar = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
            this.Text = "Upload With Estimate";
            this.Load += new System.EventHandler(this.FormUploadEstimate_Load);
            this.StatusStrip1.ResumeLayout(false);
            this.StatusStrip1.PerformLayout();
            this.GroupBox1.ResumeLayout(false);
            this.GroupBox1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        internal System.Windows.Forms.Label Label22;
        internal System.Windows.Forms.Label Label21;
        internal System.Windows.Forms.StatusStrip StatusStrip1;
        internal System.Windows.Forms.ToolStripStatusLabel ToolStripStatusLabelAction;
        internal System.Windows.Forms.ToolStripProgressBar ToolStripProgressBar;
        internal System.Windows.Forms.ToolStripStatusLabel ToolStripStatusLabelBytes;
        internal System.Windows.Forms.ToolStripStatusLabel ToolStripStatusLabelSpeed;
        internal System.Windows.Forms.ToolStripStatusLabel ToolStripStatusLabelElapsed;
        internal System.Windows.Forms.ToolStripStatusLabel ToolStripStatusLabelRemaining;
        internal System.Windows.Forms.Button ButtonAbort;
        internal System.Windows.Forms.CheckBox CheckBoxUploadMakePublic;
        internal System.Windows.Forms.TextBox TextBoxUploadContentType;
        internal System.Windows.Forms.Label Label20;
        internal System.Windows.Forms.GroupBox GroupBox1;
        internal System.Windows.Forms.Button ButtonUploadBrowse;
        internal System.Windows.Forms.TextBox TextBoxUploadKeyName;
        internal System.Windows.Forms.TextBox TextBoxUploadBucketName;
        internal System.Windows.Forms.TextBox TextBoxUploadFileName;
        internal System.Windows.Forms.Label Label9;
        internal System.Windows.Forms.Label Label8;
        internal System.Windows.Forms.Label Label7;
        internal System.Windows.Forms.Label Label18;
        internal System.Windows.Forms.Button ButtonUploadFile;
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Apache License, Version 2.0


Written By
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions