示例#1
0
        private void btnNuevo_Click(object sender, EventArgs e)
        {
            frmCuentaBancaria cuenta = new frmCuentaBancaria();

            cuenta.StartPosition = FormStartPosition.CenterScreen;
            cuenta.Show();
        }
示例#2
0
        private void grdCuenta_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            string sid      = grdCuenta.Rows[grdCuenta.CurrentCell.RowIndex].Cells[0].Value.ToString();
            string sNombre  = grdCuenta.Rows[grdCuenta.CurrentCell.RowIndex].Cells[1].Value.ToString();
            string sNumero  = grdCuenta.Rows[grdCuenta.CurrentCell.RowIndex].Cells[2].Value.ToString();
            string sSaldo   = grdCuenta.Rows[grdCuenta.CurrentCell.RowIndex].Cells[3].Value.ToString();
            string sEmpresa = grdCuenta.Rows[grdCuenta.CurrentCell.RowIndex].Cells[4].Value.ToString();
            string sBanco   = grdCuenta.Rows[grdCuenta.CurrentCell.RowIndex].Cells[5].Value.ToString();



            frmCuentaBancaria temp = new frmCuentaBancaria(sid, sNombre, sNumero, sSaldo, sBanco, sEmpresa);

            temp.Show();
        }