private void PopulateComboboxes() { var catService = new CategoryServiceClient(); cbCategory.DataSource = catService.GetCategories(); cbCategory.DisplayMember = "CategoryName"; cbCategory.ValueMember = "Id"; var ptService = new PaymentTypeServiceClient(); cbPaymentType.DataSource = ptService.GetPaymentTypes(); cbPaymentType.DisplayMember = "Name"; cbPaymentType.ValueMember = "id"; }
public PaymentType[] GetPaymentTypes() { var pt = new PaymentTypeServiceClient(); return(pt.GetPaymentTypes()); }