Hallo,
I have a following class and i have a List of Box. In the form i have option to change Unit system to SI or Imperial. I have a Boolean property and String property called UnitChanged and Unit. In the form start SI will be set as default unit. if user change the unit by clicking a button Unit property will be set to "SI" or "IM" and UnitChanged will be set to True and i want all the Length and Width values has to be converted to Imperial unit and vice versa.
I am looking for a way to trigger a sub when user changes the Unit in the form. Is there a way i can trigger it for all the objects in the list?
I can listen to the unitchange by using readonly property in the Box object but with readonly property i cant execute the sub.
Public Class Box
Public Property Length As Integer
Public Property Width As Integer
Public Sub ChangeUnit()
If Form1.UnitChanged Then
If Form1.Unit.Equals("SI") Then
Length = Length * 25.400013716
Else
Length = Length * 0.0393701
End If
Else
End Sub
End Class
Thanks

