' ------------------------------------------------------------
' Code generated automatically by Code Architects' VB Migration Partner
' ------------------------------------------------------------

Option Strict Off      ' Code migrated from VB6 has Option Strict disabled by default

<System.Runtime.InteropServices.ProgID("FMStocks_Bus.Version")> _ 
<Transaction(TransactionOption.Disabled)> _
Public Class Version
	Inherits ServicedComponent

	#Region "Constructor"
	
	'A public default constructor
	Public Sub New()
		Class_Initialize_VB6()
		' Add initialization code here
	End Sub
	
	#End Region
	
	#Region "Static constructor"
	
	' This static constructor ensures that the VB6 support library be initialized before using current class.
	Shared Sub New()
		EnsureVB6LibraryInitialization()
	End Sub
	
	#End Region
	
	Private Const m_modName As String = "FMStocks_Bus.Version"
	Private m_dbVer As FMStocks_DB.Version
	
	Private Sub Class_Initialize_VB6()
		m_dbVer = New FMStocks_DB.Version()
	End Sub

	Private Sub Class_Terminate_VB6()
		m_dbVer = Nothing
	End Sub

	Public Function Version() As String
		Return GetVersionNumber()
	End Function

	Public Function ComputerName() As String
		Return GetComputerName()
	End Function

	Public Function DALVersion() As String
		Return m_dbVer.Version()
	End Function

	Public Function DALConnectionString() As String
		Return m_dbVer.ConnectionString()
	End Function

	Public Function ConnectionString() As String
		Return DALConnectionString()
	End Function

	Public Function DALComputerName() As String
		Return m_dbVer.ComputerName()
	End Function

	Protected Overrides Sub Dispose(ByVal disposing As Boolean)
		Try
				Class_Terminate_VB6()
		Finally
			MyBase.Dispose(disposing)
		End Try
	End Sub

End Class
