예제 #1
0
 private void csvExport_Click(object sender, EventArgs e)
 {
     if (brewelist.Count > 0 && saveFileDialog1.ShowDialog() != DialogResult.Cancel)
     {
         BrewerUtil.writeList(saveFileDialog1.FileName, brewelist);
     }
 }
예제 #2
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();
        }