예제 #1
0
        private void btnList_Click(object sender, EventArgs e)
        {
            lstSehir.Items.Clear();
            List <string> result = utilities.BuildList <string>("Malatya", "Ankara", "İstanbul");

            foreach (var i in result)
            {
                lstSehir.Items.Add(i);
            }
            // dal.Add(new Customer { ID = 1, FirstName="Ayse", LastName="Kilic", Age = 25 });
            dal.AddNew(new Customer {
                ID = 1, FirstName = "Ayse", LastName = "Kilic", Age = 25
            });
        }