void FrmCadProdutosAcaoLoad(object sender, EventArgs e) { produtos = new cProdutosAcao(); this.Cursor = Cursors.WaitCursor; produtos.Carrega(dgvCadastro); this.Cursor = Cursors.Default; SetaEdicaoLocal(false); }
public fProdutosAcao(int seqAcao) { InitializeComponent(); this.seqAcao = seqAcao; cProdutosAcao produtosAcao = new cProdutosAcao(); this.Cursor = Cursors.WaitCursor; produtosAcao.Carrega(dgvCadastro, seqAcao); this.Cursor = Cursors.Default; }
void BtnConfirmaClick(object sender, EventArgs e) { cProdutosAcao produtosAcao = new cProdutosAcao(); string msg = ""; bool ret = produtosAcao.Atualiza(dgvCadastro, seqAcao, ref msg); if (!ret) { MessageBox.Show("Erro na atualização:\n" + msg); return; } Close(); }