Click here to Skip to main content
15,894,405 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.
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class FormDownload
    Inherits System.Windows.Forms.Form

    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Me.LabelBytesTransfered = New System.Windows.Forms.Label
        Me.ProgressBarTransfered = New System.Windows.Forms.ProgressBar
        Me.ButtonAbort = New System.Windows.Forms.Button
        Me.ButtonDownloadFile = New System.Windows.Forms.Button
        Me.Label19 = New System.Windows.Forms.Label
        Me.TextBoxDownloadFileName = New System.Windows.Forms.TextBox
        Me.TextBoxDownloadKeyName = New System.Windows.Forms.TextBox
        Me.TextBoxDownloadBucketName = New System.Windows.Forms.TextBox
        Me.Label12 = New System.Windows.Forms.Label
        Me.Label11 = New System.Windows.Forms.Label
        Me.Label10 = New System.Windows.Forms.Label
        Me.GroupBox1 = New System.Windows.Forms.GroupBox
        Me.GroupBox1.SuspendLayout()
        Me.SuspendLayout()
        '
        'LabelBytesTransfered
        '
        Me.LabelBytesTransfered.AutoSize = True
        Me.LabelBytesTransfered.Enabled = False
        Me.LabelBytesTransfered.Location = New System.Drawing.Point(155, 256)
        Me.LabelBytesTransfered.Name = "LabelBytesTransfered"
        Me.LabelBytesTransfered.Size = New System.Drawing.Size(86, 13)
        Me.LabelBytesTransfered.TabIndex = 77
        Me.LabelBytesTransfered.Text = "0 bytes / 0 bytes"
        '
        'ProgressBarTransfered
        '
        Me.ProgressBarTransfered.Enabled = False
        Me.ProgressBarTransfered.Location = New System.Drawing.Point(28, 230)
        Me.ProgressBarTransfered.Name = "ProgressBarTransfered"
        Me.ProgressBarTransfered.Size = New System.Drawing.Size(341, 23)
        Me.ProgressBarTransfered.TabIndex = 76
        '
        'ButtonAbort
        '
        Me.ButtonAbort.Enabled = False
        Me.ButtonAbort.Location = New System.Drawing.Point(209, 183)
        Me.ButtonAbort.Name = "ButtonAbort"
        Me.ButtonAbort.Size = New System.Drawing.Size(96, 23)
        Me.ButtonAbort.TabIndex = 75
        Me.ButtonAbort.Text = "Abort"
        Me.ButtonAbort.UseVisualStyleBackColor = True
        '
        'ButtonDownloadFile
        '
        Me.ButtonDownloadFile.Location = New System.Drawing.Point(91, 183)
        Me.ButtonDownloadFile.Name = "ButtonDownloadFile"
        Me.ButtonDownloadFile.Size = New System.Drawing.Size(96, 23)
        Me.ButtonDownloadFile.TabIndex = 74
        Me.ButtonDownloadFile.Text = "Start Download"
        Me.ButtonDownloadFile.UseVisualStyleBackColor = True
        '
        'Label19
        '
        Me.Label19.Location = New System.Drawing.Point(12, 9)
        Me.Label19.Name = "Label19"
        Me.Label19.Size = New System.Drawing.Size(373, 44)
        Me.Label19.TabIndex = 73
        Me.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."
        '
        'TextBoxDownloadFileName
        '
        Me.TextBoxDownloadFileName.Location = New System.Drawing.Point(97, 73)
        Me.TextBoxDownloadFileName.Name = "TextBoxDownloadFileName"
        Me.TextBoxDownloadFileName.Size = New System.Drawing.Size(250, 20)
        Me.TextBoxDownloadFileName.TabIndex = 69
        '
        'TextBoxDownloadKeyName
        '
        Me.TextBoxDownloadKeyName.Location = New System.Drawing.Point(97, 47)
        Me.TextBoxDownloadKeyName.Name = "TextBoxDownloadKeyName"
        Me.TextBoxDownloadKeyName.Size = New System.Drawing.Size(250, 20)
        Me.TextBoxDownloadKeyName.TabIndex = 68
        '
        'TextBoxDownloadBucketName
        '
        Me.TextBoxDownloadBucketName.Location = New System.Drawing.Point(97, 21)
        Me.TextBoxDownloadBucketName.Name = "TextBoxDownloadBucketName"
        Me.TextBoxDownloadBucketName.Size = New System.Drawing.Size(250, 20)
        Me.TextBoxDownloadBucketName.TabIndex = 67
        '
        'Label12
        '
        Me.Label12.AutoSize = True
        Me.Label12.Location = New System.Drawing.Point(8, 76)
        Me.Label12.Name = "Label12"
        Me.Label12.Size = New System.Drawing.Size(83, 13)
        Me.Label12.TabIndex = 72
        Me.Label12.Text = "Local File Name"
        '
        'Label11
        '
        Me.Label11.AutoSize = True
        Me.Label11.Location = New System.Drawing.Point(7, 50)
        Me.Label11.Name = "Label11"
        Me.Label11.Size = New System.Drawing.Size(56, 13)
        Me.Label11.TabIndex = 71
        Me.Label11.Text = "Key Name"
        '
        'Label10
        '
        Me.Label10.AutoSize = True
        Me.Label10.Location = New System.Drawing.Point(7, 24)
        Me.Label10.Name = "Label10"
        Me.Label10.Size = New System.Drawing.Size(72, 13)
        Me.Label10.TabIndex = 70
        Me.Label10.Text = "Bucket Name"
        '
        'GroupBox1
        '
        Me.GroupBox1.Controls.Add(Me.Label10)
        Me.GroupBox1.Controls.Add(Me.Label11)
        Me.GroupBox1.Controls.Add(Me.Label12)
        Me.GroupBox1.Controls.Add(Me.TextBoxDownloadBucketName)
        Me.GroupBox1.Controls.Add(Me.TextBoxDownloadKeyName)
        Me.GroupBox1.Controls.Add(Me.TextBoxDownloadFileName)
        Me.GroupBox1.Location = New System.Drawing.Point(12, 56)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(373, 110)
        Me.GroupBox1.TabIndex = 78
        Me.GroupBox1.TabStop = False
        Me.GroupBox1.Text = "Download Options"
        '
        'FormDownload
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(397, 282)
        Me.Controls.Add(Me.GroupBox1)
        Me.Controls.Add(Me.LabelBytesTransfered)
        Me.Controls.Add(Me.ProgressBarTransfered)
        Me.Controls.Add(Me.ButtonAbort)
        Me.Controls.Add(Me.ButtonDownloadFile)
        Me.Controls.Add(Me.Label19)
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
        Me.MaximizeBox = False
        Me.MinimizeBox = False
        Me.Name = "FormDownload"
        Me.ShowInTaskbar = False
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent
        Me.Text = "Download a File"
        Me.GroupBox1.ResumeLayout(False)
        Me.GroupBox1.PerformLayout()
        Me.ResumeLayout(False)
        Me.PerformLayout()

    End Sub
    Friend WithEvents LabelBytesTransfered As System.Windows.Forms.Label
    Friend WithEvents ProgressBarTransfered As System.Windows.Forms.ProgressBar
    Friend WithEvents ButtonAbort As System.Windows.Forms.Button
    Friend WithEvents ButtonDownloadFile As System.Windows.Forms.Button
    Friend WithEvents Label19 As System.Windows.Forms.Label
    Friend WithEvents TextBoxDownloadFileName As System.Windows.Forms.TextBox
    Friend WithEvents TextBoxDownloadKeyName As System.Windows.Forms.TextBox
    Friend WithEvents TextBoxDownloadBucketName As System.Windows.Forms.TextBox
    Friend WithEvents Label12 As System.Windows.Forms.Label
    Friend WithEvents Label11 As System.Windows.Forms.Label
    Friend WithEvents Label10 As System.Windows.Forms.Label
    Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox

End Class

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