예제 #1
0
 private void ClearControls()
 {
     CustomerNameTextBox.Clear();
     CustomerMobileTextBox.Clear();
     CustomerAddressTextBox.Clear();
     CustomerNameTextBox.Focus();
 }
예제 #2
0
 private void clear()
 {
     StoreNameTextBox.Clear();
     PickupTimeDateTimePicker.ResetText();
     CoversNumeric.Value = 0;
     CustomerNameTextBox.Clear();
     MemberNumberTextBox.Clear();
     CommentsTextBox.Clear();
     RespondCheckBox.Checked         = false;
     PaymentRequiredCheckBox.Checked = false;
 }
예제 #3
0
        /// <summary>
        /// Tìm xem khách hàng này có trong CSDL không
        /// </summary>
        private void customerPhoneTextBox_TextChanged(object sender, TextChangedEventArgs e)
        {
            var telCustomer = customerPhoneTextBox.Text;
            var db          = new MyShopEntities();

            customer = db.Customers.Find(telCustomer);//Tìm số điện thoại trong CSDL

            //Tìm thấy tên khách hàng theo số điện thoại
            if (customer != null)
            {
                CustomerNameTextBox.Text = customer.Fullname;//Lấy tên tương ướng với SDT
            }
            else
            {
                CustomerNameTextBox.Clear();
            }
        }
예제 #4
0
        internal void RefreshTabCustomer()
        {
            customerBindingSource.Clear();
            for (int i = 0; i < manager.Customers.Count; i++)
            {
                customerBindingSource.Add(manager.Customers[i]);
            }
            CustomerNameTextBox.Clear();
            CustomerSurnameTextBox.Clear();
            CountryTextBox.Clear();
            AgreementDateTimePicker.Value = DateTime.Now;
            CustomerDataGridView.ClearSelection();


            for (int i = 0; i < manager.Customers.Count; i++)
            {
                LoadProjectInfoToCustomer(manager.Customers[i]);
            }
        }