Imports System.ComponentModel
Imports System.Drawing
Imports System.Windows.Forms

Public Class DecoForm
  Inherits System.Windows.Forms.Form
  Public Sub New()
    MyBase.New()
    Form1 = Me
    'This call is required by the Win Form Designer.
    InitializeComponent()
  End Sub

  'Destruktor usuwa zarejestrowane komponenty
  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

#Region " Windows Form Designer generated code "

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

  Private WithEvents DecoPanel1 As DecoPanel
  Private WithEvents btQuit As System.Windows.Forms.Button
  Friend WithEvents AButton As System.Windows.Forms.Button
  Dim WithEvents Form1 As System.Windows.Forms.Form

  '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.
  Private Sub InitializeComponent()
    Me.DecoPanel1 = New Decorator.DecoPanel()
    Me.btQuit = New System.Windows.Forms.Button()
    Me.AButton = New System.Windows.Forms.Button()
    Me.DecoPanel1.SuspendLayout()
    Me.SuspendLayout()
    '
    'DecoPanel1
    '
    Me.DecoPanel1.Controls.AddRange(New System.Windows.Forms.Control() {Me.AButton})
    Me.DecoPanel1.Location = New System.Drawing.Point(16, 24)
    Me.DecoPanel1.Name = "DecoPanel1"
    Me.DecoPanel1.Size = New System.Drawing.Size(88, 40)
    Me.DecoPanel1.TabIndex = 3
    '
    'btQuit
    '
    Me.btQuit.Location = New System.Drawing.Point(152, 32)
    Me.btQuit.Name = "btQuit"
    Me.btQuit.Size = New System.Drawing.Size(80, 32)
    Me.btQuit.TabIndex = 2
    Me.btQuit.Text = "Quit"
    '
    'AButton
    '
    Me.AButton.Name = "AButton"
    Me.AButton.Size = New System.Drawing.Size(80, 32)
    Me.AButton.TabIndex = 0
    Me.AButton.Text = "A button"
    '
    'DecoForm
    '
    Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
    Me.ClientSize = New System.Drawing.Size(248, 101)
    Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.btQuit, Me.DecoPanel1})
    Me.Name = "DecoForm"
    Me.Text = "Decorator form"
    Me.DecoPanel1.ResumeLayout(False)
    Me.ResumeLayout(False)

  End Sub

#End Region

  Private Sub btQuit_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btQuit.Click
    End
  End Sub

End Class
