1 Partial
Public Class AddProductWindow
8 Private Sub SubmitProduct(ByVal sender
As Object, ByVal e
As RoutedEventArgs
)
9 Dim item
As AuctionItem
= CType((Me.DataContext
), AuctionItem
)
10 CType(Application
.Current
, DataBindingLabApp
).AuctionItems
.Add(item
)
14 Private Sub OnInit(ByVal sender
As Object, ByVal e
As RoutedEventArgs
)
15 Me.DataContext
= New AuctionItem("Type your description here", ProductCategory
.DVDs
, 1, DateTime
.Now
, CType(Application
.Current
, DataBindingLabApp
).CurrentUser
, SpecialFeatures
.None
)