Пример #1
0
        public void insertCustomer()
        {
            cDal = new CallerIDDAL();
            Customer customer = new Customer();
            bool inserted = false;
            customer.Name = txtNameLine1.Text;
            customer.LastName = txtLastNameLine1.Text;
            customer.Address = addressLine1.Text;
            customer.Phone = txtPhoneLine1.Text;
            customer.Region = txtRegionLine1.Text;
            customer.CustomerNote = txtNoteLine1.Text;
            if (customer != null)
            {
                inserted = cDal.insertNewCustomer(customer);
            }

            if (!inserted)
                MessageBox.Show("Müşteri ad, soyad ve adres bilgilerini lütfen eksiksiz bir şekilde doldurunuz.");
        }