コード例 #1
0
        private void regcbtn_Click(object sender, EventArgs e)
        {
            CustomerRepository _CustomerRepository = new CustomerRepository();

            bool AdminAddedOrNot = _CustomerRepository.Addcustomer(tbid.Text, tbname.Text, tbpass.Text, tbphone.Text, tbemail.Text, aPictureBox);

            if (AdminAddedOrNot)
            {
                MessageBox.Show("Customer Registered");
            }
            else
            {
                MessageBox.Show("Customer Not Registered");
            }
        }
コード例 #2
0
 public bool Addcustomer(CustomerModel customerModel)
 {
     return(_customerRepository.Addcustomer(customerModel));
 }