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.
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class FormUpload
    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()
        Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(FormUpload))
        Me.LabelAction = New System.Windows.Forms.Label
        Me.LabelBytesTransfered = New System.Windows.Forms.Label
        Me.ProgressBarTransfered = New System.Windows.Forms.ProgressBar
        Me.ButtonAbort = New System.Windows.Forms.Button
        Me.Label18 = New System.Windows.Forms.Label
        Me.ButtonUploadFile = New System.Windows.Forms.Button
        Me.GroupBox1 = New System.Windows.Forms.GroupBox
        Me.Label22 = New System.Windows.Forms.Label
        Me.Label21 = New System.Windows.Forms.Label
        Me.CheckBoxUploadMakePublic = New System.Windows.Forms.CheckBox
        Me.TextBoxUploadContentType = New System.Windows.Forms.TextBox
        Me.Label20 = New System.Windows.Forms.Label
        Me.ButtonUploadBrowse = New System.Windows.Forms.Button
        Me.TextBoxUploadKeyName = New System.Windows.Forms.TextBox
        Me.TextBoxUploadBucketName = New System.Windows.Forms.TextBox
        Me.TextBoxUploadFileName = New System.Windows.Forms.TextBox
        Me.Label9 = New System.Windows.Forms.Label
        Me.Label8 = New System.Windows.Forms.Label
        Me.Label7 = New System.Windows.Forms.Label
        Me.GroupBox1.SuspendLayout()
        Me.SuspendLayout()
        '
        'LabelAction
        '
        Me.LabelAction.AutoSize = True
        Me.LabelAction.Enabled = False
        Me.LabelAction.Location = New System.Drawing.Point(61, 284)
        Me.LabelAction.Name = "LabelAction"
        Me.LabelAction.Size = New System.Drawing.Size(43, 13)
        Me.LabelAction.TabIndex = 82
        Me.LabelAction.Text = "Waiting"
        '
        'LabelBytesTransfered
        '
        Me.LabelBytesTransfered.AutoSize = True
        Me.LabelBytesTransfered.Enabled = False
        Me.LabelBytesTransfered.Location = New System.Drawing.Point(185, 326)
        Me.LabelBytesTransfered.Name = "LabelBytesTransfered"
        Me.LabelBytesTransfered.Size = New System.Drawing.Size(86, 13)
        Me.LabelBytesTransfered.TabIndex = 80
        Me.LabelBytesTransfered.Text = "0 bytes / 0 bytes"
        '
        'ProgressBarTransfered
        '
        Me.ProgressBarTransfered.Enabled = False
        Me.ProgressBarTransfered.Location = New System.Drawing.Point(58, 300)
        Me.ProgressBarTransfered.Name = "ProgressBarTransfered"
        Me.ProgressBarTransfered.Size = New System.Drawing.Size(341, 23)
        Me.ProgressBarTransfered.TabIndex = 79
        '
        'ButtonAbort
        '
        Me.ButtonAbort.Enabled = False
        Me.ButtonAbort.Location = New System.Drawing.Point(239, 251)
        Me.ButtonAbort.Name = "ButtonAbort"
        Me.ButtonAbort.Size = New System.Drawing.Size(96, 23)
        Me.ButtonAbort.TabIndex = 78
        Me.ButtonAbort.Text = "Abort"
        Me.ButtonAbort.UseVisualStyleBackColor = True
        '
        'Label18
        '
        Me.Label18.Location = New System.Drawing.Point(12, 9)
        Me.Label18.Name = "Label18"
        Me.Label18.Size = New System.Drawing.Size(435, 55)
        Me.Label18.TabIndex = 72
        Me.Label18.Text = resources.GetString("Label18.Text")
        '
        'ButtonUploadFile
        '
        Me.ButtonUploadFile.Location = New System.Drawing.Point(121, 251)
        Me.ButtonUploadFile.Name = "ButtonUploadFile"
        Me.ButtonUploadFile.Size = New System.Drawing.Size(96, 23)
        Me.ButtonUploadFile.TabIndex = 76
        Me.ButtonUploadFile.Text = "Start Upload"
        Me.ButtonUploadFile.UseVisualStyleBackColor = True
        '
        'GroupBox1
        '
        Me.GroupBox1.Controls.Add(Me.Label22)
        Me.GroupBox1.Controls.Add(Me.Label21)
        Me.GroupBox1.Controls.Add(Me.CheckBoxUploadMakePublic)
        Me.GroupBox1.Controls.Add(Me.TextBoxUploadContentType)
        Me.GroupBox1.Controls.Add(Me.Label20)
        Me.GroupBox1.Controls.Add(Me.ButtonUploadBrowse)
        Me.GroupBox1.Controls.Add(Me.TextBoxUploadKeyName)
        Me.GroupBox1.Controls.Add(Me.TextBoxUploadBucketName)
        Me.GroupBox1.Controls.Add(Me.TextBoxUploadFileName)
        Me.GroupBox1.Controls.Add(Me.Label9)
        Me.GroupBox1.Controls.Add(Me.Label8)
        Me.GroupBox1.Controls.Add(Me.Label7)
        Me.GroupBox1.Location = New System.Drawing.Point(12, 71)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(435, 163)
        Me.GroupBox1.TabIndex = 83
        Me.GroupBox1.TabStop = False
        Me.GroupBox1.Text = "Upload Options"
        '
        'Label22
        '
        Me.Label22.AutoSize = True
        Me.Label22.Location = New System.Drawing.Point(351, 105)
        Me.Label22.Name = "Label22"
        Me.Label22.Size = New System.Drawing.Size(52, 13)
        Me.Label22.TabIndex = 93
        Me.Label22.Text = "(Optional)"
        '
        'Label21
        '
        Me.Label21.AutoSize = True
        Me.Label21.Location = New System.Drawing.Point(6, 132)
        Me.Label21.Name = "Label21"
        Me.Label21.Size = New System.Drawing.Size(66, 13)
        Me.Label21.TabIndex = 92
        Me.Label21.Text = "Make Public"
        '
        'CheckBoxUploadMakePublic
        '
        Me.CheckBoxUploadMakePublic.AutoSize = True
        Me.CheckBoxUploadMakePublic.Location = New System.Drawing.Point(95, 133)
        Me.CheckBoxUploadMakePublic.Name = "CheckBoxUploadMakePublic"
        Me.CheckBoxUploadMakePublic.Size = New System.Drawing.Size(15, 14)
        Me.CheckBoxUploadMakePublic.TabIndex = 91
        Me.CheckBoxUploadMakePublic.UseVisualStyleBackColor = True
        '
        'TextBoxUploadContentType
        '
        Me.TextBoxUploadContentType.Location = New System.Drawing.Point(95, 102)
        Me.TextBoxUploadContentType.Name = "TextBoxUploadContentType"
        Me.TextBoxUploadContentType.Size = New System.Drawing.Size(250, 20)
        Me.TextBoxUploadContentType.TabIndex = 90
        '
        'Label20
        '
        Me.Label20.AutoSize = True
        Me.Label20.Location = New System.Drawing.Point(6, 105)
        Me.Label20.Name = "Label20"
        Me.Label20.Size = New System.Drawing.Size(71, 13)
        Me.Label20.TabIndex = 89
        Me.Label20.Text = "Content-Type"
        '
        'ButtonUploadBrowse
        '
        Me.ButtonUploadBrowse.Location = New System.Drawing.Point(351, 22)
        Me.ButtonUploadBrowse.Name = "ButtonUploadBrowse"
        Me.ButtonUploadBrowse.Size = New System.Drawing.Size(75, 23)
        Me.ButtonUploadBrowse.TabIndex = 83
        Me.ButtonUploadBrowse.Text = "Browse"
        Me.ButtonUploadBrowse.UseVisualStyleBackColor = True
        '
        'TextBoxUploadKeyName
        '
        Me.TextBoxUploadKeyName.Location = New System.Drawing.Point(95, 76)
        Me.TextBoxUploadKeyName.Name = "TextBoxUploadKeyName"
        Me.TextBoxUploadKeyName.Size = New System.Drawing.Size(250, 20)
        Me.TextBoxUploadKeyName.TabIndex = 85
        '
        'TextBoxUploadBucketName
        '
        Me.TextBoxUploadBucketName.Location = New System.Drawing.Point(95, 50)
        Me.TextBoxUploadBucketName.Name = "TextBoxUploadBucketName"
        Me.TextBoxUploadBucketName.Size = New System.Drawing.Size(250, 20)
        Me.TextBoxUploadBucketName.TabIndex = 84
        '
        'TextBoxUploadFileName
        '
        Me.TextBoxUploadFileName.Location = New System.Drawing.Point(95, 24)
        Me.TextBoxUploadFileName.Name = "TextBoxUploadFileName"
        Me.TextBoxUploadFileName.Size = New System.Drawing.Size(250, 20)
        Me.TextBoxUploadFileName.TabIndex = 82
        '
        'Label9
        '
        Me.Label9.AutoSize = True
        Me.Label9.Location = New System.Drawing.Point(6, 79)
        Me.Label9.Name = "Label9"
        Me.Label9.Size = New System.Drawing.Size(56, 13)
        Me.Label9.TabIndex = 88
        Me.Label9.Text = "Key Name"
        '
        'Label8
        '
        Me.Label8.AutoSize = True
        Me.Label8.Location = New System.Drawing.Point(6, 53)
        Me.Label8.Name = "Label8"
        Me.Label8.Size = New System.Drawing.Size(72, 13)
        Me.Label8.TabIndex = 87
        Me.Label8.Text = "Bucket Name"
        '
        'Label7
        '
        Me.Label7.AutoSize = True
        Me.Label7.Location = New System.Drawing.Point(6, 27)
        Me.Label7.Name = "Label7"
        Me.Label7.Size = New System.Drawing.Size(83, 13)
        Me.Label7.TabIndex = 86
        Me.Label7.Text = "Local File Name"
        '
        'FormUpload
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(457, 352)
        Me.Controls.Add(Me.GroupBox1)
        Me.Controls.Add(Me.LabelAction)
        Me.Controls.Add(Me.LabelBytesTransfered)
        Me.Controls.Add(Me.ProgressBarTransfered)
        Me.Controls.Add(Me.ButtonAbort)
        Me.Controls.Add(Me.Label18)
        Me.Controls.Add(Me.ButtonUploadFile)
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
        Me.MaximizeBox = False
        Me.MinimizeBox = False
        Me.Name = "FormUpload"
        Me.ShowInTaskbar = False
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent
        Me.Text = "Upload a File"
        Me.GroupBox1.ResumeLayout(False)
        Me.GroupBox1.PerformLayout()
        Me.ResumeLayout(False)
        Me.PerformLayout()

    End Sub
    Friend WithEvents LabelAction As System.Windows.Forms.Label
    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 Label18 As System.Windows.Forms.Label
    Friend WithEvents ButtonUploadFile As System.Windows.Forms.Button
    Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
    Friend WithEvents Label22 As System.Windows.Forms.Label
    Friend WithEvents Label21 As System.Windows.Forms.Label
    Friend WithEvents CheckBoxUploadMakePublic As System.Windows.Forms.CheckBox
    Friend WithEvents TextBoxUploadContentType As System.Windows.Forms.TextBox
    Friend WithEvents Label20 As System.Windows.Forms.Label
    Friend WithEvents ButtonUploadBrowse As System.Windows.Forms.Button
    Friend WithEvents TextBoxUploadKeyName As System.Windows.Forms.TextBox
    Friend WithEvents TextBoxUploadBucketName As System.Windows.Forms.TextBox
    Friend WithEvents TextBoxUploadFileName As System.Windows.Forms.TextBox
    Friend WithEvents Label9 As System.Windows.Forms.Label
    Friend WithEvents Label8 As System.Windows.Forms.Label
    Friend WithEvents Label7 As System.Windows.Forms.Label

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