'  
'   Rebex Sample Code License
' 
'   Copyright 2025, REBEX CR s.r.o.
'   All rights reserved.
'   https://www.rebex.net/
' 
'   Permission to use, copy, modify, and/or distribute this software for any
'   purpose with or without fee is hereby granted.
' 
'   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
'   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
'   OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
'   NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
'   HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
'   WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
'   FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
'   OTHER DEALINGS IN THE SOFTWARE.
' 

Partial Class MainForm
    ''' <summary>
    ''' Required designer variable.
    ''' </summary>
    Private components As System.ComponentModel.IContainer = Nothing

    ''' <summary>
    ''' Clean up any resources being used.
    ''' </summary>
    ''' <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
    Protected Overrides Sub Dispose(disposing As Boolean)
        If disposing AndAlso (components IsNot Nothing) Then
            components.Dispose()
        End If
        MyBase.Dispose(disposing)
    End Sub

#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 Sub InitializeComponent()
        Me.btnStartStop = New System.Windows.Forms.Button()
        Me.btnBrowseRoot = New System.Windows.Forms.Button()
        Me.lblVirtualRoot = New System.Windows.Forms.Label()
        Me.lblServerInfo = New System.Windows.Forms.Label()
        Me.tbLog = New System.Windows.Forms.RichTextBox()
        Me.tbVirtualRoot = New System.Windows.Forms.TextBox()
        Me.folderBrowserDialog = New System.Windows.Forms.FolderBrowserDialog()
        Me.btnChangeVirtualRoot = New System.Windows.Forms.Button()
        Me.lblPort = New System.Windows.Forms.Label()
        Me.tbPort = New System.Windows.Forms.TextBox()
        Me.SuspendLayout()
        ' 
        ' btnStartStop
        ' 
        Me.btnStartStop.Location = New System.Drawing.Point(12, 12)
        Me.btnStartStop.Name = "btnStartStop"
        Me.btnStartStop.Size = New System.Drawing.Size(75, 23)
        Me.btnStartStop.TabIndex = 0
        Me.btnStartStop.Text = "&Start"
        Me.btnStartStop.UseVisualStyleBackColor = True
        Me.btnStartStop.Enabled = False
        ' 
        ' btnBrowseRoot
        ' 
        Me.btnBrowseRoot.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
        Me.btnBrowseRoot.Location = New System.Drawing.Point(537, 72)
        Me.btnBrowseRoot.Name = "btnBrowseRoot"
        Me.btnBrowseRoot.Size = New System.Drawing.Size(75, 23)
        Me.btnBrowseRoot.TabIndex = 1
        Me.btnBrowseRoot.Text = "&Browse..."
        Me.btnBrowseRoot.UseVisualStyleBackColor = True
        Me.btnBrowseRoot.Enabled = False
        ' 
        ' lblVirtualRoot
        ' 
        Me.lblVirtualRoot.AutoSize = True
        Me.lblVirtualRoot.Location = New System.Drawing.Point(12, 55)
        Me.lblVirtualRoot.Name = "lblVirtualRoot"
        Me.lblVirtualRoot.Size = New System.Drawing.Size(143, 13)
        Me.lblVirtualRoot.TabIndex = 4
        Me.lblVirtualRoot.Text = "Virtual root folder for 'user01':"
        ' 
        ' lblServerInfo
        ' 
        Me.lblServerInfo.AutoSize = True
        Me.lblServerInfo.Location = New System.Drawing.Point(105, 17)
        Me.lblServerInfo.Name = "lblServerInfo"
        Me.lblServerInfo.Size = New System.Drawing.Size(141, 13)
        Me.lblServerInfo.TabIndex = 5
        Me.lblServerInfo.Text = "Server has not been started."
        ' 
        ' tbLog
        ' 
        Me.tbLog.AccessibleRole = System.Windows.Forms.AccessibleRole.None
        Me.tbLog.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) Or System.Windows.Forms.AnchorStyles.Left) Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
        Me.tbLog.BackColor = System.Drawing.SystemColors.Control
        Me.tbLog.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.tbLog.Font = New System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CByte(0))
        Me.tbLog.Location = New System.Drawing.Point(12, 104)
        Me.tbLog.MaxLength = 1000000
        Me.tbLog.Name = "tbLog"
        Me.tbLog.[ReadOnly] = True
        Me.tbLog.Size = New System.Drawing.Size(681, 301)
        Me.tbLog.TabIndex = 4
        Me.tbLog.Text = ""
        Me.tbLog.WordWrap = False
        ' 
        ' tbVirtualRoot
        ' 
        Me.tbVirtualRoot.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
        Me.tbVirtualRoot.Location = New System.Drawing.Point(12, 74)
        Me.tbVirtualRoot.Name = "tbVirtualRoot"
        Me.tbVirtualRoot.Size = New System.Drawing.Size(519, 20)
        Me.tbVirtualRoot.TabIndex = 2
        ' 
        ' folderBrowserDialog
        ' 
        Me.folderBrowserDialog.RootFolder = System.Environment.SpecialFolder.MyComputer
        ' 
        ' btnChangeVirtualRoot
        ' 
        Me.btnChangeVirtualRoot.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
        Me.btnChangeVirtualRoot.Location = New System.Drawing.Point(618, 72)
        Me.btnChangeVirtualRoot.Name = "btnChangeVirtualRoot"
        Me.btnChangeVirtualRoot.Size = New System.Drawing.Size(75, 23)
        Me.btnChangeVirtualRoot.TabIndex = 3
        Me.btnChangeVirtualRoot.Text = "&Apply"
        Me.btnChangeVirtualRoot.UseVisualStyleBackColor = True
        Me.btnChangeVirtualRoot.Enabled = False
        ' 
        ' lblPort
        '
        Me.lblPort.AutoSize = True
        Me.lblPort.Location = New System.Drawing.Point(583, 17)
        Me.lblPort.Name = "lblPort"
        Me.lblPort.Size = New System.Drawing.Size(29, 13)
        Me.lblPort.TabIndex = 6
        Me.lblPort.Text = "Port:"
        ' 
        ' tbPort
        ' 
        Me.tbPort.Location = New System.Drawing.Point(618, 14)
        Me.tbPort.Name = "tbPort"
        Me.tbPort.Size = New System.Drawing.Size(75, 20)
        Me.tbPort.TabIndex = 7
        Me.tbPort.Text = "8022"
        ' 
        ' MainForm
        ' 
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0F, 13.0F)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(705, 417)
        Me.Controls.Add(Me.tbPort)
        Me.Controls.Add(Me.lblPort)
        Me.Controls.Add(Me.btnChangeVirtualRoot)
        Me.Controls.Add(Me.tbVirtualRoot)
        Me.Controls.Add(Me.lblVirtualRoot)
        Me.Controls.Add(Me.btnBrowseRoot)
        Me.Controls.Add(Me.tbLog)
        Me.Controls.Add(Me.lblServerInfo)
        Me.Controls.Add(Me.btnStartStop)
        Me.MinimumSize = New System.Drawing.Size(660, 400)
        Me.Name = "MainForm"
        Me.Text = "Simple File Server (SFTP, SCP, SSH)"
        Me.ResumeLayout(False)
        Me.PerformLayout()

    End Sub

#End Region

    Private WithEvents btnStartStop As System.Windows.Forms.Button
    Private WithEvents btnBrowseRoot As System.Windows.Forms.Button
    Private WithEvents btnChangeVirtualRoot As System.Windows.Forms.Button
    Private lblVirtualRoot As System.Windows.Forms.Label
    Private lblServerInfo As System.Windows.Forms.Label
    Private lblPort As System.Windows.Forms.Label
    Private tbLog As System.Windows.Forms.RichTextBox
    Private tbVirtualRoot As System.Windows.Forms.TextBox
    Private tbPort As System.Windows.Forms.TextBox
    Private folderBrowserDialog As System.Windows.Forms.FolderBrowserDialog
End Class

