示例#1
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     isNFCe = e.Parameter != null ? (bool)e.Parameter : false;
     using (var repo = new BaseGeral.Repositorio.Leitura())
     {
         Lista = (from imp in repo.ObterInutilizacoes(isNFCe)
                  group imp by imp.Homologacao ? "Homologação" : "Produção").GerarObs();
         Itens = new CollectionViewSource()
         {
             IsSourceGrouped = true,
             Source          = Lista
         }.View;
     }
 }