private void BtNovo_Click(object sender, EventArgs e) { Location = new Point(300, 300); frmCadCompra frm = new frmCadCompra(); frm.ShowDialog(); }
private void btAlterar_Click(object sender, EventArgs e) { if (dgListaCompra.Rows.Count == 0) { Geral.Erro("Não há Compra Selecionada para Alterar!"); return; } frmCadCompra frm = new frmCadCompra(); frm.txtIdCompra.Text = dgListaCompra.CurrentRow.Cells["COMPRA_ID"].Value.ToString(); frm.ShowDialog(); BuscarCompra(); }