Sharing a property from a Class to another Class/Custom object class ?

  • Thread starter Thread starter Shan1986
  • Start date Start date
S

Shan1986

Guest
Hallo,

I have a class setup like below. I want to access Currency property of the project in Class "Good", How do I do that ?


Public Class Project
Public Property Currency() As Double
Public Property Goods() As Goods
End Class

Public Class Good
Public Property Price1() As Integer
Public Property Price2() As Integer
Public Property Price3() As Integer

Public Readonly Property TotalCost() As Double
Get
Return Get_TotalCost()
End Get
End Property

Public Function Get_totalCost() As Double
Return Me.Price1* Me.Price2* Me.Price3* Currency
End function

End Class

Public Class Goods
Inherits System.ComponentModel.BindingList(Of Good)
End Class

Thanks

Continue reading...
 
Back
Top