Ejemplo n.º 1
0
        private void OrganizaTelaEvent(int tipo)
        {
            LblVersao.Content = string.Concat("v", StaticParametros.GetVersao());

            BtnHabilitaLog.Content = StaticParametros.GetGeraLogs() ? "Deabilitar Logs" : "Habilitar Logs";

            if (tipo == 1)
            {
                BtnReIntegrar.Visibility = Visibility.Hidden;
                BtnSalvar.Visibility     = Visibility.Visible;
                LblSalvar.Visibility     = Visibility.Visible;

                BtnProcurarIni.Visibility   = Visibility.Visible;
                BtnProcurarToken.Visibility = Visibility.Visible;

                BtnConsultar.Visibility     = Visibility.Hidden;
                BtnEnviar.Visibility        = Visibility.Hidden;
                BtnParam.Visibility         = Visibility.Hidden;
                BtnLog.Visibility           = Visibility.Hidden;
                BtnConectarBanco.Visibility = Visibility.Visible;
                BtnHabilitaLog.Visibility   = Visibility.Visible;
            }
            else if (tipo == 2)
            {
                BtnReIntegrar.Visibility = Visibility.Visible;
                BtnConsultar.Visibility  = Visibility.Visible;
                BtnEnviar.Visibility     = Visibility.Visible;
                BtnParam.Visibility      = Visibility.Visible;
                BtnLog.Visibility        = Visibility.Visible;

                BtnSalvar.Visibility        = Visibility.Hidden;
                LblSalvar.Visibility        = Visibility.Hidden;
                BtnProcurarIni.Visibility   = Visibility.Hidden;
                BtnProcurarToken.Visibility = Visibility.Hidden;
                BtnConectarBanco.Visibility = Visibility.Hidden;
                BtnHabilitaLog.Visibility   = Visibility.Hidden;
            }
        }