コード例 #1
0
ファイル: frmGenerator.cs プロジェクト: Ivanm452/Monitoring
 private void ucitajMaticneBrojeve(String idMonitoring)
 {
     DBCommOsnovnePostavke.connection = new SqlConnection(DBBlokadeData.connectionString);
     DBCommOsnovnePostavke.connection.Open();
     nfpm = DBCommOsnovnePostavke.getNadgledaneFirme(idMonitoring);
     DBCommOsnovnePostavke.connection.Close();
 }
コード例 #2
0
ファイル: frmAddOsnovne.cs プロジェクト: Ivanm452/Monitoring
        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);
                }
            }
        }