VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
  Persistable = 0  'NotPersistable
  DataBindingBehavior = 0  'vbNone
  DataSourceBehavior  = 0  'vbNone
  MTSTransactionMode  = 0  'NotAnMTSObject
END
Attribute VB_Name = "Application"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Option Explicit

Private mForm As Form1

Public Function Init(Params As Variant) As Variant
    mForm.List1.AddItem Now & " - " & ObjPtr(Me)
End Function

Public Sub Destroy()
    Set mForm = Nothing
End Sub

Public Function Instance(NewInstance As Instance, Params As Variant) As Variant
    mForm.Restore
    mForm.List1.AddItem Now & " - " & ObjPtr(NewInstance)
End Function

Private Sub Class_Initialize()
    Set gApplication = Me
    Set mForm = New Form1
    mForm.Show
End Sub

