Public Class GdenMaker
  Inherits System.Windows.Forms.Form
  Private gden As Garden

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub
    Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
    Friend WithEvents opVegetable As System.Windows.Forms.RadioButton
    Friend WithEvents opAnnual As System.Windows.Forms.RadioButton
    Friend WithEvents opPerennial As System.Windows.Forms.RadioButton
    Friend WithEvents btCenter As System.Windows.Forms.Button
    Friend WithEvents btBorder As System.Windows.Forms.Button
    Friend WithEvents btShade As System.Windows.Forms.Button
    Friend WithEvents pbox As GdPic

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

    '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.opAnnual = New System.Windows.Forms.RadioButton()
        Me.opPerennial = New System.Windows.Forms.RadioButton()
        Me.btShade = New System.Windows.Forms.Button()
        Me.pbox = New Gardenmaker.GdPic()
        Me.btCenter = New System.Windows.Forms.Button()
        Me.btBorder = New System.Windows.Forms.Button()
        Me.GroupBox1 = New System.Windows.Forms.GroupBox()
        Me.opVegetable = New System.Windows.Forms.RadioButton()
        Me.GroupBox1.SuspendLayout()
        Me.SuspendLayout()
        '
        'opAnnual
        '
        Me.opAnnual.Location = New System.Drawing.Point(16, 48)
        Me.opAnnual.Name = "opAnnual"
        Me.opAnnual.Size = New System.Drawing.Size(80, 16)
        Me.opAnnual.TabIndex = 1
        Me.opAnnual.Text = "Annual"
        '
        'opPerennial
        '
        Me.opPerennial.Location = New System.Drawing.Point(16, 72)
        Me.opPerennial.Name = "opPerennial"
        Me.opPerennial.Size = New System.Drawing.Size(104, 16)
        Me.opPerennial.TabIndex = 2
        Me.opPerennial.Text = "Perennial"
        '
        'btShade
        '
        Me.btShade.Location = New System.Drawing.Point(352, 216)
        Me.btShade.Name = "btShade"
        Me.btShade.Size = New System.Drawing.Size(56, 24)
        Me.btShade.TabIndex = 3
        Me.btShade.Text = "Shade"
        '
        'pbox
        '
        Me.pbox.Location = New System.Drawing.Point(224, 16)
        Me.pbox.Name = "pbox"
        Me.pbox.Size = New System.Drawing.Size(184, 184)
        Me.pbox.TabIndex = 4
        Me.pbox.TabStop = False
        '
        'btCenter
        '
        Me.btCenter.Location = New System.Drawing.Point(200, 216)
        Me.btCenter.Name = "btCenter"
        Me.btCenter.Size = New System.Drawing.Size(56, 24)
        Me.btCenter.TabIndex = 1
        Me.btCenter.Text = "Center"
        '
        'btBorder
        '
        Me.btBorder.Location = New System.Drawing.Point(272, 216)
        Me.btBorder.Name = "btBorder"
        Me.btBorder.Size = New System.Drawing.Size(64, 24)
        Me.btBorder.TabIndex = 2
        Me.btBorder.Text = "Border"
        '
        'GroupBox1
        '
        Me.GroupBox1.Controls.AddRange(New System.Windows.Forms.Control() {Me.opPerennial, Me.opAnnual, Me.opVegetable})
        Me.GroupBox1.Location = New System.Drawing.Point(32, 64)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(152, 112)
        Me.GroupBox1.TabIndex = 0
        Me.GroupBox1.TabStop = False
        Me.GroupBox1.Text = "Garden type"
        '
        'opVegetable
        '
        Me.opVegetable.Location = New System.Drawing.Point(16, 24)
        Me.opVegetable.Name = "opVegetable"
        Me.opVegetable.Size = New System.Drawing.Size(112, 16)
        Me.opVegetable.TabIndex = 0
        Me.opVegetable.Text = "Vegetable"
        '
        'GdenMaker
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.ClientSize = New System.Drawing.Size(432, 261)
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.pbox, Me.btShade, Me.btBorder, Me.btCenter, Me.GroupBox1})
        Me.Name = "GdenMaker"
        Me.Text = "GardenMaker"
        Me.GroupBox1.ResumeLayout(False)
        Me.ResumeLayout(False)

    End Sub

#End Region

  Private Sub GdenMaker_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    gden = New VegetableGarden()
    pbox.setGarden(gden)
    opVegetable.Checked = True
  End Sub

  Private Sub opVegetable_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles opVegetable.CheckedChanged
    gden = New VegetableGarden()
    pbox.setGarden(gden)
  End Sub

  Private Sub opAnnual_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles opAnnual.CheckedChanged
    gden = New AnnualGarden()
    pbox.setGarden(gden)
  End Sub

  Private Sub opPerennial_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles opPerennial.CheckedChanged
    gden = New PerennialGarden()
    pbox.setGarden(gden)
  End Sub

  Private Sub btCenter_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btCenter.Click
    gden.showCenter()
    pbox.Refresh()
  End Sub

  Private Sub btBorder_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btBorder.Click
    gden.showBorder()
    pbox.Refresh()
  End Sub

  Private Sub btShade_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btShade.Click
    gden.showShade()
    pbox.Refresh()
  End Sub
End Class
