private void btnNewBid_Click(object sender, RoutedEventArgs e) { var editBid = new Bids(); editBid.DialogFinished += new EventHandler <WindowEventArgs>(bid_DialogFinished); editBid.Show(); }
private void gridBid_doubleClick(object sender, MouseButtonEventArgs e) { if (gridBid.SelectedItem == null) { return; } else { var selectedBid = gridBid.SelectedItem as Bid; var bid = new Bids(selectedBid); bid.DialogFinished += new EventHandler <WindowEventArgs>(bid_DialogFinished); bid.Show(); } }