Click here to Skip to main content
15,896,606 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 FormDownload
    {
        /// <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.Label11 = new System.Windows.Forms.Label();
            this.Label12 = new System.Windows.Forms.Label();
            this.LabelBytesTransfered = new System.Windows.Forms.Label();
            this.Label10 = new System.Windows.Forms.Label();
            this.TextBoxDownloadBucketName = new System.Windows.Forms.TextBox();
            this.TextBoxDownloadKeyName = new System.Windows.Forms.TextBox();
            this.GroupBox1 = new System.Windows.Forms.GroupBox();
            this.TextBoxDownloadFileName = new System.Windows.Forms.TextBox();
            this.ProgressBarTransfered = new System.Windows.Forms.ProgressBar();
            this.ButtonAbort = new System.Windows.Forms.Button();
            this.ButtonDownloadFile = new System.Windows.Forms.Button();
            this.Label19 = new System.Windows.Forms.Label();
            this.GroupBox1.SuspendLayout();
            this.SuspendLayout();
            // 
            // Label11
            // 
            this.Label11.AutoSize = true;
            this.Label11.Location = new System.Drawing.Point(7, 50);
            this.Label11.Name = "Label11";
            this.Label11.Size = new System.Drawing.Size(56, 13);
            this.Label11.TabIndex = 71;
            this.Label11.Text = "Key Name";
            // 
            // Label12
            // 
            this.Label12.AutoSize = true;
            this.Label12.Location = new System.Drawing.Point(8, 76);
            this.Label12.Name = "Label12";
            this.Label12.Size = new System.Drawing.Size(83, 13);
            this.Label12.TabIndex = 72;
            this.Label12.Text = "Local File Name";
            // 
            // LabelBytesTransfered
            // 
            this.LabelBytesTransfered.AutoSize = true;
            this.LabelBytesTransfered.Enabled = false;
            this.LabelBytesTransfered.Location = new System.Drawing.Point(155, 258);
            this.LabelBytesTransfered.Name = "LabelBytesTransfered";
            this.LabelBytesTransfered.Size = new System.Drawing.Size(86, 13);
            this.LabelBytesTransfered.TabIndex = 83;
            this.LabelBytesTransfered.Text = "0 bytes / 0 bytes";
            // 
            // Label10
            // 
            this.Label10.AutoSize = true;
            this.Label10.Location = new System.Drawing.Point(7, 24);
            this.Label10.Name = "Label10";
            this.Label10.Size = new System.Drawing.Size(72, 13);
            this.Label10.TabIndex = 70;
            this.Label10.Text = "Bucket Name";
            // 
            // TextBoxDownloadBucketName
            // 
            this.TextBoxDownloadBucketName.Location = new System.Drawing.Point(97, 21);
            this.TextBoxDownloadBucketName.Name = "TextBoxDownloadBucketName";
            this.TextBoxDownloadBucketName.Size = new System.Drawing.Size(250, 20);
            this.TextBoxDownloadBucketName.TabIndex = 67;
            // 
            // TextBoxDownloadKeyName
            // 
            this.TextBoxDownloadKeyName.Location = new System.Drawing.Point(97, 47);
            this.TextBoxDownloadKeyName.Name = "TextBoxDownloadKeyName";
            this.TextBoxDownloadKeyName.Size = new System.Drawing.Size(250, 20);
            this.TextBoxDownloadKeyName.TabIndex = 68;
            // 
            // GroupBox1
            // 
            this.GroupBox1.Controls.Add(this.Label10);
            this.GroupBox1.Controls.Add(this.Label11);
            this.GroupBox1.Controls.Add(this.Label12);
            this.GroupBox1.Controls.Add(this.TextBoxDownloadBucketName);
            this.GroupBox1.Controls.Add(this.TextBoxDownloadKeyName);
            this.GroupBox1.Controls.Add(this.TextBoxDownloadFileName);
            this.GroupBox1.Location = new System.Drawing.Point(12, 58);
            this.GroupBox1.Name = "GroupBox1";
            this.GroupBox1.Size = new System.Drawing.Size(373, 110);
            this.GroupBox1.TabIndex = 84;
            this.GroupBox1.TabStop = false;
            this.GroupBox1.Text = "Download Options";
            // 
            // TextBoxDownloadFileName
            // 
            this.TextBoxDownloadFileName.Location = new System.Drawing.Point(97, 73);
            this.TextBoxDownloadFileName.Name = "TextBoxDownloadFileName";
            this.TextBoxDownloadFileName.Size = new System.Drawing.Size(250, 20);
            this.TextBoxDownloadFileName.TabIndex = 69;
            // 
            // ProgressBarTransfered
            // 
            this.ProgressBarTransfered.Enabled = false;
            this.ProgressBarTransfered.Location = new System.Drawing.Point(28, 232);
            this.ProgressBarTransfered.Name = "ProgressBarTransfered";
            this.ProgressBarTransfered.Size = new System.Drawing.Size(341, 23);
            this.ProgressBarTransfered.TabIndex = 82;
            // 
            // ButtonAbort
            // 
            this.ButtonAbort.Enabled = false;
            this.ButtonAbort.Location = new System.Drawing.Point(209, 185);
            this.ButtonAbort.Name = "ButtonAbort";
            this.ButtonAbort.Size = new System.Drawing.Size(96, 23);
            this.ButtonAbort.TabIndex = 81;
            this.ButtonAbort.Text = "Abort";
            this.ButtonAbort.UseVisualStyleBackColor = true;
            this.ButtonAbort.Click += new System.EventHandler(this.ButtonAbort_Click);
            // 
            // ButtonDownloadFile
            // 
            this.ButtonDownloadFile.Location = new System.Drawing.Point(91, 185);
            this.ButtonDownloadFile.Name = "ButtonDownloadFile";
            this.ButtonDownloadFile.Size = new System.Drawing.Size(96, 23);
            this.ButtonDownloadFile.TabIndex = 80;
            this.ButtonDownloadFile.Text = "Start Download";
            this.ButtonDownloadFile.UseVisualStyleBackColor = true;
            this.ButtonDownloadFile.Click += new System.EventHandler(this.ButtonDownloadFile_Click);
            // 
            // Label19
            // 
            this.Label19.Location = new System.Drawing.Point(12, 11);
            this.Label19.Name = "Label19";
            this.Label19.Size = new System.Drawing.Size(373, 44);
            this.Label19.TabIndex = 79;
            this.Label19.Text = "The following demonstrates a multithreaded download with progress notification.  " +
                "This example will overwrite an existing local file and delete a partially downlo" +
                "aded file.";
            // 
            // FormDownload
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(397, 282);
            this.Controls.Add(this.LabelBytesTransfered);
            this.Controls.Add(this.GroupBox1);
            this.Controls.Add(this.ProgressBarTransfered);
            this.Controls.Add(this.ButtonAbort);
            this.Controls.Add(this.ButtonDownloadFile);
            this.Controls.Add(this.Label19);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "FormDownload";
            this.ShowInTaskbar = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
            this.Text = "Download a File";
            this.Load += new System.EventHandler(this.FormDownload_Load);
            this.GroupBox1.ResumeLayout(false);
            this.GroupBox1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        internal System.Windows.Forms.Label Label11;
        internal System.Windows.Forms.Label Label12;
        internal System.Windows.Forms.Label LabelBytesTransfered;
        internal System.Windows.Forms.Label Label10;
        internal System.Windows.Forms.TextBox TextBoxDownloadBucketName;
        internal System.Windows.Forms.TextBox TextBoxDownloadKeyName;
        internal System.Windows.Forms.GroupBox GroupBox1;
        internal System.Windows.Forms.TextBox TextBoxDownloadFileName;
        internal System.Windows.Forms.ProgressBar ProgressBarTransfered;
        internal System.Windows.Forms.Button ButtonAbort;
        internal System.Windows.Forms.Button ButtonDownloadFile;
        internal System.Windows.Forms.Label Label19;
    }
}

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