Public Class frmImpInterface
  Inherits System.Windows.Forms.Form

  Private Const APARTMENT As Integer = 0
  Private Const COMMERCIAL As Integer = 1
  Private Const HOME As Integer = 2

#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

  '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.
  Friend WithEvents btnExit As System.Windows.Forms.Button
  Friend WithEvents txtOutput As System.Windows.Forms.TextBox
  Friend WithEvents btnProperties As System.Windows.Forms.Button
  <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
    Me.btnExit = New System.Windows.Forms.Button()
    Me.txtOutput = New System.Windows.Forms.TextBox()
    Me.btnProperties = New System.Windows.Forms.Button()
    Me.SuspendLayout()
    '
    'btnExit
    '
    Me.btnExit.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.btnExit.Location = New System.Drawing.Point(224, 216)
    Me.btnExit.Name = "btnExit"
    Me.btnExit.Size = New System.Drawing.Size(128, 24)
    Me.btnExit.TabIndex = 17
    Me.btnExit.Text = "E&xit"
    '
    'txtOutput
    '
    Me.txtOutput.Location = New System.Drawing.Point(8, 8)
    Me.txtOutput.Multiline = True
    Me.txtOutput.Name = "txtOutput"
    Me.txtOutput.Size = New System.Drawing.Size(208, 240)
    Me.txtOutput.TabIndex = 18
    Me.txtOutput.Text = ""
    '
    'btnProperties
    '
    Me.btnProperties.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.btnProperties.Location = New System.Drawing.Point(224, 16)
    Me.btnProperties.Name = "btnProperties"
    Me.btnProperties.Size = New System.Drawing.Size(128, 24)
    Me.btnProperties.TabIndex = 19
    Me.btnProperties.Text = "&Properties"
    '
    'frmImpInterface
    '
    Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
    Me.ClientSize = New System.Drawing.Size(360, 253)
    Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.btnProperties, Me.txtOutput, Me.btnExit})
    Me.Name = "frmImpInterface"
    Me.Text = "Building"
    Me.ResumeLayout(False)

  End Sub

#End Region

  Private Sub frmBuilding_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

  End Sub

  Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click
    Me.Dispose()
  End Sub

  Private Sub btnProperties_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnProperties.Click
    Dim CurrentBuilding As Building

    Dim MyApartment As New Apartment("6 North Ben Street", 550000, 6000, 12000, APARTMENT, "555-1000")
    Dim MyBuilding As New Commercial("250 Industrial Drive", 320000, 3800, 5800, COMMERCIAL, "")
    Dim MyHome As New Home("2 Ghent Court", 140000, 1300, 3300, HOME, "")
    Dim delta As New Home()

    Console.WriteLine(MyApartment.CallSnowRemoval())
    Console.WriteLine(MyBuilding.CallSnowRemoval())
    Console.WriteLine(MyHome.CallSnowRemoval())
    Console.WriteLine(delta.CallSnowRemoval())

  End Sub
End Class
