Example #1
0
 private void NoticiasVerificar()
 {
     //Não checar notícias se não for sanog
     if (D.APP_FTP_USER.ToLower() != "sanog")
         return;
     news = null;
     GC.Collect();
     //Inicia o thread que faz a busca por notícias
     news = new Neopocket.Core.News();
 }
Example #2
0
        private void FrmPrincipal_Load(object sender, EventArgs e)
        {
            do{
                FrmLogin f = new FrmLogin();
                Util.FormExibirDialog(f);
                if (f.WishLeaveSystem)
                {
                    fecheSemPedirConfirmacao = true;
                    Close();
                    return;
                }
            }while(!D.Funcionario.Validado);
            lbVersion.Text = D.APP_VERSION;

            //Oculta o botão de notícias caso não seja a sanog
            if (D.APP_FTP_USER.ToLower() != "sanog")
                btnNoticias.Visible = false;

            if (D.AppVersion.ToString() != "")
                this.Text += " - " + D.AppVersion.ToString();
            Cursor.Current = Cursors.Default;
            inputPanel.Enabled = false;
            this.MostraPedidosRestantes();
            //Inicia o thread que faz a busca por notícias
            news = new Neopocket.Core.News();
        }