public UnosAparata() { InitializeComponent(); tipComboBox.DataSource = tipRepo.getAll(); tipComboBox.DisplayMember = "tip"; tipComboBox.ValueMember = "id"; korisnikComboBox.DataSource = korisnikRepo.getAll(); korisnikComboBox.DisplayMember = "firma"; korisnikComboBox.ValueMember = "id"; }
private void UnosTipa_Load(object sender, EventArgs e) { dataGridView1.DataSource = tipRepo.getAll(); }