Example #1
0
        private void PrikaziPodatke(string uri)
        {
            List <Tecaj> lista = Tecaj.DohvatiRESTPodatke(uri);

            dgvTecajnaLista.DataSource = null;
            dgvTecajnaLista.DataSource = lista;
        }
Example #2
0
        private void NapuniCombobox()
        {
            List <Tecaj> lista = Tecaj.DohvatiRESTPodatke("http://api.hnb.hr/tecajn/v1");

            cbValute.DisplayMember = "Valuta";
            cbValute.SelectedValue = "Valuta";
            cbValute.DataSource    = null;
            cbValute.DataSource    = lista;
        }