Ejemplo n.º 1
0
        private void check_Click(object sender, EventArgs e)
        {
            var l  = BrewerUtil.getBrewers();
            var db = new BrewerDB();

            db.open();
            foreach (var b in l)
            {
//                Console.WriteLine(b);
                db.regist(b);
            }
            db.close();
        }
Ejemplo n.º 2
0
        private void searchbutton_Click(object sender, EventArgs e)
        {
            var db = new BrewerDB();

            db.open();
            brewelist = db.searchBrewer(searchTextBox.Text.Trim());
            db.close();

            brewerListView.Items.Clear();

            foreach (var b in brewelist)
            {
                brewerListView.Items.Add(new ListViewItem(b.brewer));
            }
        }