Esempio n. 1
0
 void FrmCadProdutosAcaoLoad(object sender, EventArgs e)
 {
     produtos    = new cProdutosAcao();
     this.Cursor = Cursors.WaitCursor;
     produtos.Carrega(dgvCadastro);
     this.Cursor = Cursors.Default;
     SetaEdicaoLocal(false);
 }
Esempio n. 2
0
        public fProdutosAcao(int seqAcao)
        {
            InitializeComponent();
            this.seqAcao = seqAcao;

            cProdutosAcao produtosAcao = new cProdutosAcao();

            this.Cursor = Cursors.WaitCursor;
            produtosAcao.Carrega(dgvCadastro, seqAcao);
            this.Cursor = Cursors.Default;
        }
Esempio n. 3
0
        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();
        }