private void MainForm_Load(object sender, EventArgs e) { IRepository reposiory = new FuelRepository(); cmbFuels.DisplayMember = "Type"; cmbFuels.DataSource = reposiory.Get(); sumCafe.Text = "0,00"; }
private void MainForm_Load(object sender, EventArgs e) { comboBoxFuelTypes.DataSource = _fuelRepository.Get(); }