Beispiel #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            try
            {
                BLL.Customer customerBLL = new BLL.Customer();
                for (var i = 0; i < 10; i++)
                {
                    DTO.Customer customer = new Customer()
                    {
                        Age           = i + 10,
                        Birthday      = DateTime.Now.ToString(DTO.Constants.BASIC_DATE),
                        EnrollmentFee = 11.4,
                        HasChildren   = false,
                        Name          = "alex " + i.ToString(),
                        Opinion       = "alex",
                        Id            = i + 1
                    };

                    customerBLL.Index(customer);
                }
                MessageBox.Show("Indexed");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Beispiel #2
0
 private void btnDeleteAll_Click(object sender, EventArgs e)
 {
     BLL.Customer customerBLL = new BLL.Customer();
     customerBLL.DeleteAll();
 }
Beispiel #3
0
 private void btnDelete_Click(object sender, EventArgs e)
 {
     BLL.Customer customerBLL = new BLL.Customer();
     customerBLL.Delete(txtSearch.ToString());
 }
Beispiel #4
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            BLL.Customer customerBLL = new BLL.Customer();

            var items = customerBLL.QueryById(txtSearch.ToString());
        }