private void ButBasket_Click(UnidaysDiscountChallenge unidaysDiscountChallenge) { //Create a new window BasketWindow basketWindow = new BasketWindow(unidaysDiscountChallenge); basketWindow.Show(); Close(); }
private void ButBasket_Click(UnidaysDiscountChallenge unidaysDiscountChallenge) { //Create a new window, send in the basket BasketWindow basketWindow = new BasketWindow(unidaysDiscountChallenge); if (basketWindow.ShowDialog() == true) { tbBasketSize.Text = unidaysDiscountChallenge.GetBasketSize().ToString(); } }