I have a public property, "Status" that is an enum. I have a setter method that changes the status and raises the PropertyChanged event. However, the WinForms user interface is not properly updating. I'm pretty sure it's because Status is an enum. Although I was thinking enum was a reference type but I guess it's a value type. Does INotifyPropertyChanged work the same with reference and value types?
Code:''' <summary> ''' Set's the BOL's status. ''' </summary> ''' <param name="Status">The new status to set the BOL to.</param> Public Sub SetStatus(ByVal Status As BillOfLadingStatus) 'todo: change to private, had as public for testing purposes. Me._Status = Status Me.OnPropertyChanged(New PropertyChangedEventArgs("Status")) End Sub Private _Status As BillOfLadingStatus ''' <summary> ''' The status of the BOL ''' </summary> Public ReadOnly Property Status As BillOfLadingStatus Get Return Me._Status End Get End Property




Reply With Quote