示例#1
0
        private void btnAgregar_Click(object sender, EventArgs e)
        {
            FormRegistroCliente formRegistroCliente = new FormRegistroCliente(userID, rolID);

            this.Hide();
            formRegistroCliente.Show();
        }
示例#2
0
        private void btnModificar_Click(object sender, EventArgs e)
        {
            string clienteID = dgvClientes.CurrentRow.Cells[0].Value.ToString();

            string query = "SELECT * FROM PEAKY_BLINDERS.clientes C "
                           + "LEFT JOIN PEAKY_BLINDERS.tipos_de_documento T "
                           + "ON C.id_tipo_de_documento = T.id_tipo_de_documento "
                           + "WHERE C.id_cliente = '" + clienteID + "'";
            FormRegistroCliente formRegistroCliente = new FormRegistroCliente(userID, rolID, query);

            this.Hide();
            formRegistroCliente.Show();
        }
        private void nuevoToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FormRegistroCliente fc = new FormRegistroCliente();

            fc.ShowDialog();
        }
        private void RegistrarClienteBtn_Click(object sender, RoutedEventArgs e)
        {
            FormRegistroCliente formRegistroCliente = new FormRegistroCliente();

            formRegistroCliente.Show();
        }