Exemplo n.º 1
0
        private void OnAuctionItemClick(object sender, RoutedEventArgs e)
        {
            var auction = ((Button)sender).DataContext as Auction;
            var bidView = new BidView(auction);

            bidView.ShowDialog();
        }
Exemplo n.º 2
0
        private void PlaceBidButtonClick(object sender, RoutedEventArgs e)
        {
            var currentAuction = (Auction)this.AuctionsDataGrid.SelectedItem;
            var bidView        = new BidView(currentAuction);

            bidView.ShowDialog(); // Blocking
        }
Exemplo n.º 3
0
        // 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();
        }
Exemplo n.º 4
0
 public void PlaceBid(object sender, RoutedEventArgs e)
 {
     var auction = this.mainWindowGrid.SelectedItem as Auction;
     var bidView = new BidView(auction);
     bidView.ShowDialog();
 }