示例#1
0
 private void Btn_search_Click(object sender, EventArgs e)
 {
     using (SeleccionCustomers customers = new SeleccionCustomers())
     {
         customers.Dtcustomer = manager.GetCustomers();
         customers.ShowDialog();
         TXT_IDCUST.Text        = customers.GetCustomerId;
         TXT_CUSTOMER_NAME.Text = customers.GetCustomerName;
     };
 }
示例#2
0
 private void Bot_buscar_clientes_Click(object sender, EventArgs e)
 {
     using (SeleccionCustomers selectcustomer = new SeleccionCustomers())
     {
         selectcustomer.dtcustomer = ds.Tables["dtcustomer"];
         selectcustomer.ShowDialog();
         txt_customer_id.Text    = selectcustomer.GetCustomerId;
         txt_customer_name.Text  = selectcustomer.GetCustomerName;
         txt_customer_direc.Text = selectcustomer.GetCustomerDirecc;
     }
 }
示例#3
0
        private void LoadCustomers(TextBox tb_id, TextBox tb_name)
        {
            SeleccionCustomers clientes = new SeleccionCustomers
            {
                Dtcustomer = customerManager.GetCustomers()
            };

            clientes.ShowDialog();
            tb_id.Text   = clientes.GetCustomerId;
            tb_name.Text = clientes.GetCustomerName;
        }
示例#4
0
        private void BOT_SEARCH_CUSTOM_Click(object sender, EventArgs e)
        {
            SeleccionCustomers customers = new SeleccionCustomers
            {
                Dtcustomer = this.Dtcustomers
            };

            customers.ShowDialog();
            TXT_CUSTOMER.Text = customers.GetCustomerName;
            TXT_IDCUST.Text   = customers.GetCustomerId;
        }