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


                if (dataGridView1.SelectedRows.Count > 0)
                {
                    Program.Evento = 1;
                }
                else
                {
                    Program.Evento = 0;
                }
                Us.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)
        {
            FormRegistroUsuario Us = new FormRegistroUsuario();

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