private void btnEditar_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count > 0)
            {
                FormRegistrarClientes ct = new FormRegistrarClientes();
                ct.txtRuc.Text           = dataGridView1.CurrentRow.Cells[0].Value.ToString();
                ct.txtNombreEmpresa.Text = dataGridView1.CurrentRow.Cells[1].Value.ToString();
                ct.txtBrand.Text         = dataGridView1.CurrentRow.Cells[2].Value.ToString();
                ct.txtDireccion.Text     = dataGridView1.CurrentRow.Cells[3].Value.ToString();
                ct.txtEmail.Text         = dataGridView1.CurrentRow.Cells[4].Value.ToString();
                ct.txtTelefono.Text      = dataGridView1.CurrentRow.Cells[5].Value.ToString();
                ct.txtStatus.Text        = dataGridView1.CurrentRow.Cells[6].Value.ToString();
                ct.txtCondicion.Text     = dataGridView1.CurrentRow.Cells[7].Value.ToString();


                if (dataGridView1.SelectedRows.Count > 0)
                {
                    Program.Evento = 1;
                }
                else
                {
                    Program.Evento = 0;
                }

                ct.ShowDialog();
                dataGridView1.ClearSelection();
                CargarListado();
            }
            else
            {
                MessageBox.Show("Debe Seleccionar la Fila a Editar.", "Sistema de Ventas.", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }
        private void btnNuevo_Click(object sender, EventArgs e)
        {
            FormRegistrarClientes cl = new FormRegistrarClientes();

            if (dataGridView1.SelectedRows.Count > 0)
            {
                Program.Evento = 1;
            }
            else
            {
                Program.Evento = 0;
            }

            cl.ShowDialog();
            dataGridView1.ClearSelection();
            CargarListado();
        }