Exemple #1
0
        private void BtnCtrlVendasClick(object sender, EventArgs e)
        {
            if (gstVenda == null)
            {
                gstVenda = new FrmVenda();

                gstVenda.Show();
                gstVenda.Focus();

                gstVenda.FormClosed += delegate { gstVenda = null; };
            }
            else
            {
                gstVenda.Show();
                gstVenda.Focus();
            }
        }
Exemple #2
0
        public void DesbloquearTela()
        {
            FrmTesteUsuario validacao = new FrmTesteUsuario(ControleDeUsuario.NomeUsuario);

            while (!validacao.AcessoPermitido)
            {
                validacao.ShowDialog();
            }
            validacao.Dispose();

            pnlBloqueio.SendToBack();
            pnlBloqueio.Visible = false;
            pnlBloqueio.Enabled = false;

            gstCliente?.Show();
            gstEstoque?.Show();
            gstFinanca?.Show();
            gstFornecedor?.Show();
            gstFuncionario?.Show();
            gstVenda?.Show();
        }