private void OnAuctionItemClick(object sender, RoutedEventArgs e) { var auction = ((Button)sender).DataContext as Auction; var bidView = new BidView(auction); bidView.ShowDialog(); }
private void PlaceBidButtonClick(object sender, RoutedEventArgs e) { var currentAuction = (Auction)this.AuctionsDataGrid.SelectedItem; var bidView = new BidView(currentAuction); bidView.ShowDialog(); // Blocking }
// Place-Bid Button Click Event Handler // Hier soll Place-Bid View geöffnet werden private void BtnPlaceBid_OnClick(object sender, RoutedEventArgs e) { var placeBidView = new BidView(); // Öffent Fenster in Dialog-Modus, sodass zurest dieses Fenster geschlossen werden muss, bevor auf Main Window zugegriffen werden kann. placeBidView.ShowDialog(); }
public void PlaceBid(object sender, RoutedEventArgs e) { var auction = this.mainWindowGrid.SelectedItem as Auction; var bidView = new BidView(auction); bidView.ShowDialog(); }