Exemplo n.º 1
0
        private void LoadTop5()
        {
            top4Painel.Children.Clear();
            var topList = new ColaboradorDAO().ListRanking();

            if (topList.Count > 4)
            {
                topList.RemoveRange(3, topList.Count - 4);
            }
            modelos.Gerenciador.GerenciadorCursos gc;
            ObjectId idLogado = Session.GetColaborador().Id;

            foreach (var c in topList)
            {
                gc = new modelos.Gerenciador.GerenciadorCursos(c.Formacoes);
                Top4 top = new Top4();
                if (c.Id == idLogado)
                {
                    top.MySelf();
                }
                top.setDados(c.Nome, gc.Media);
                top4Painel.Children.Add(top);
            }
        }
Exemplo n.º 2
0
 private void LoadInfos(List <Formacao> f)
 {
     modelos.Gerenciador.GerenciadorCursos gc = new modelos.Gerenciador.GerenciadorCursos(f);
     Nivel.Content = "Nível " + gc.Nivel(nivel, gc.Pontuacao).Level.ToString();
 }