private async void GetPaymentsMethods() { cboPaymentMethod.DisplayMemberPath = "Name"; cboPaymentMethod.SelectedValuePath = "Id"; cboPaymentMethod.ItemsSource = await PaymentsMethods.getList(); cboPaymentMethod.SelectedIndex = 0; }
private async void LoadPaymentsMethods() { List <PaymentMethod> paymentMethods = await PaymentsMethods.getList(); txtPaymentMethod.ItemsSource = paymentMethods; txtPaymentMethod.SelectedValuePath = "Id"; txtPaymentMethod.DisplayMemberPath = "Name"; txtPaymentMethod.SelectedValue = 1; }