// Buttons private void btnLoad_Click(object sender, RoutedEventArgs e) { try { addresses = UserAddressManager.LoadByUserId(user.Id); payments = UserPaymentManager.LoadByUserId(user.Id); RefreshScreen(); } catch (Exception ex) { throw ex; } }
private void Reload() { dgvCart.ItemsSource = null; cboAddress.ItemsSource = null; cboPayment.ItemsSource = null; addresses = UserAddressManager.LoadByUserId(userId); payments = UserPaymentManager.LoadByUserId(userId); dgvCart.ItemsSource = ShoppingCart; cboAddress.ItemsSource = addresses; cboPayment.ItemsSource = payments; }