示例#1
0
        private void dgvLancamentos_DoubleClick(object sender, EventArgs e)
        {
            var ultimoId             = this.dgvLancamentos.Rows[this.dgvLancamentos.Rows.Count - 1].Cells["id"].Value.ToString();
            ProvisionadoEntrada _frm = new ProvisionadoEntrada(dgvLancamentos.CurrentRow.Cells["id"].Value.ToString(), ultimoId);

            _frm.ShowDialog();
            Provisionados_Lista();
        }
示例#2
0
        private void btnNovoCadastro_Click(object sender, EventArgs e)
        {
            var ultimoId = "0";

            if (dgvLancamentos.Rows.Count != 0)
            {
                ultimoId = this.dgvLancamentos.Rows[this.dgvLancamentos.Rows.Count - 1].Cells["id"].Value.ToString();
            }
            ProvisionadoEntrada frm = new ProvisionadoEntrada("novo", ultimoId);

            frm.ShowDialog();
            Provisionados_Lista();
        }