'------------------------------------------------------------------------------
' <auto-generated>
'     This code was generated from a template.
'
'     Manual changes to this file may cause unexpected behavior in your application.
'     Manual changes to this file will be overwritten if the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------

Imports System
Imports System.Collections.Generic
Imports System.Collections.ObjectModel
Imports System.ComponentModel

Partial Public Class Category
	Implements INotifyPropertyChanged
    Public Event PropertyChanged As PropertyChangedEventHandler Implements INotifyPropertyChanged.PropertyChanged
    Protected Sub OnPropertyChanged(ByVal propertyName As String)
        RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propertyName))
    End Sub

    Private _CategoryID As Integer
    Public Property CategoryID As Integer
        Get
            Return _CategoryID
        End Get
        Set(ByVal value As Integer)
            _CategoryID = value
            OnPropertyChanged("CategoryID")
        End Set
    End Property

    Private _CategoryName As String
    Public Property CategoryName As String
        Get
            Return _CategoryName
        End Get
        Set(ByVal value As String)
            _CategoryName = value
            OnPropertyChanged("CategoryName")
        End Set
    End Property

    Private _Description As String
    Public Property Description As String
        Get
            Return _Description
        End Get
        Set(ByVal value As String)
            _Description = value
            OnPropertyChanged("Description")
        End Set
    End Property

    Private _Picture As Byte()
    Public Property Picture As Byte()
        Get
            Return _Picture
        End Get
        Set(ByVal value As Byte())
            _Picture = value
            OnPropertyChanged("Picture")
        End Set
    End Property


    Private _Products As ObservableCollection(Of Product) = New ObservableCollection(Of Product)
    Public Overridable Property Products As ObservableCollection(Of Product)
        Get
            Return _Products
        End Get
        Set(ByVal value As ObservableCollection(Of Product))
            _Products = value
            OnPropertyChanged("Products")
        End Set
    End Property

End Class
