private void ucitajMaticneBrojeve(String idMonitoring) { DBCommOsnovnePostavke.connection = new SqlConnection(DBBlokadeData.connectionString); DBCommOsnovnePostavke.connection.Open(); nfpm = DBCommOsnovnePostavke.getNadgledaneFirme(idMonitoring); DBCommOsnovnePostavke.connection.Close(); }
private void ucitajMaticneBrojeve() { lstBoxMaticni.Items.Clear(); DBCommOsnovnePostavke.connection = new SqlConnection(DBBlokadeData.connectionString); DBCommOsnovnePostavke.connection.Open(); nfpm = DBCommOsnovnePostavke.getNadgledaneFirme(monitoring.idMonitoring); DBCommOsnovnePostavke.connection.Close(); if (nfpm != null || nfpm.maticniBrojevi.Count >= 1) { foreach (String s in nfpm.maticniBrojevi) { lstBoxMaticni.Items.Add(s); } } }