public FormZOO()
        {
            InitializeComponent();
            sqlConnection = new SqlConnection("Data Source=LAPEKPIOTREK\\KREDEKINSTANCE; database=ZOO; Trusted_Connection=yes");
            var species = Animals.ListOfSpecies(sqlConnection);

            foreach (var n in species)
            {
                comboBoxSpecies.Items.Add(n);
            }
        }
Exemple #2
0
        public Form1()
        {
            InitializeComponent();
            sqlConnection = new SqlConnection("Data Source=MSI; database=ZOO;Trusted_Connection=yes");
            var Species = Animals.ListOfSpecies(sqlConnection);

            foreach (string n in Species)
            {
                comboBoxSpecies.Items.Add(n);
            }
        }