Ejemplo n.º 1
0
 public MainWindow(IEnumService enumService, IMapper mapper)
 {
     _enumService = enumService;
     _mapper      = mapper;
     InitializeComponent();
     AmountsDropdown.ItemsSource          = _mapper.Map <List <ComboBoxItem> >(_enumService.Amounts());
     FermentableTypesDropdown.ItemsSource = _mapper.Map <List <ComboBoxItem> >(_enumService.FermentableTypes());
     BeerCategoriesDropdown.ItemsSource   = _mapper.Map <List <ComboBoxItem> >(_enumService.BeerCategories());
     BrewTypesDropdown.ItemsSource        = _mapper.Map <List <ComboBoxItem> >(_enumService.BrewTypes());
     //Yeasts = _yeastService.GetAll().Result;
 }