private void btnRegistrar_Click(object sender, EventArgs e)
        {
            InsertarClientes();
            FrmMenuPrincipalParaClientes frm = new FrmMenuPrincipalParaClientes();

            frm.GetAll("");
        }
예제 #2
0
        private void btnRegistrar_Click(object sender, EventArgs e)
        {
            string id = txtId.Text;

            EditarClientes(id);
            FrmMenuPrincipalParaClientes frm = (FrmMenuPrincipalParaClientes)Owner;

            frm.GetAll("");
            this.Close();
        }
예제 #3
0
        private void FrmEditarRegistroClientes_Load(object sender, EventArgs e)
        {
            FrmMenuPrincipalParaClientes frm = (FrmMenuPrincipalParaClientes)Owner;

            txtId.Text        = Convert.ToString(frm.dataGridView1.CurrentRow.Cells[0].Value);
            txtnombre.Text    = Convert.ToString(frm.dataGridView1.CurrentRow.Cells[1].Value);
            txtApellido.Text  = Convert.ToString(frm.dataGridView1.CurrentRow.Cells[2].Value);
            txtCiNro.Text     = Convert.ToString(frm.dataGridView1.CurrentRow.Cells[3].Value);
            txtRuc.Text       = Convert.ToString(frm.dataGridView1.CurrentRow.Cells[4].Value);
            txtNroTel.Text    = Convert.ToString(frm.dataGridView1.CurrentRow.Cells[5].Value);
            dtpFechaNac.Value = Convert.ToDateTime(frm.dataGridView1.CurrentRow.Cells[6].Value);
            txtDireccion.Text = Convert.ToString(frm.dataGridView1.CurrentRow.Cells[7].Value);
        }