private void MenuButtonEditar_Click(object sender, EventArgs e) { int Id = Convert.ToInt32(Grid.CurrentRow.Cells[0].Value); FormsFormaPagamentoParcelamento.Cadastro form = new FormsFormaPagamentoParcelamento.Cadastro(Id, Convert.ToInt32(txtId.Text)); form.ShowDialog(); }
private void MenuButtonNovo_Click(object sender, EventArgs e) { FormsFormaPagamentoParcelamento.Cadastro form = new FormsFormaPagamentoParcelamento.Cadastro(0, Convert.ToInt32(txtId.Text)); form.ShowDialog(); }