Geen cache-versie.

Caching uitgeschakeld. Standaardinstelling voor deze pagina:ingeschakeld (code LNG204)
Als het scherm te langzaam is, kunt u de gebruikersmodus uitschakelen om de cacheversie te bekijken.

AWSSearchIndices.cs

Description du code

AWSSearchIndices.cs est un fichier du projet BiblioBrol.
Ce fichier est situé dans /var/www/bin/sniplets/bibliobrol/src/.

Projet BiblioBrol :

Gestion de media en CSharp.

Pour plus d'infos, vous pouvez consulter la brève analyse.

Code source ou contenu du fichier

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Collections;
  5.  
  6. namespace be.gaudry.bibliobrol.model.aws
  7. {
  8. public class AWSSearchIndices
  9. {
  10. #region constructor and declarations
  11. public enum CATEGORY { all, books, music, films, software };
  12. private List<Indice> indices;
  13. private CATEGORY category;
  14. private Indice defaultIndice;
  15.  
  16. public AWSSearchIndices()
  17. {
  18. indices = new List<Indice>();
  19. category = CATEGORY.all;
  20. initAllIndices();
  21. }
  22. #endregion
  23.  
  24. #region initializations
  25. private void initIndices(CATEGORY cat)
  26. {
  27. switch (cat)
  28. {
  29. case CATEGORY.all: initAllIndices(); break;
  30. case CATEGORY.books: initBookIndices(); break;
  31. case CATEGORY.films: initFilmIndices(); break;
  32. case CATEGORY.music: initMusicIndices(); break;
  33. case CATEGORY.software: initSoftwareIndices(); break;
  34. }
  35. }
  36.  
  37. private void initFilmIndices()
  38. {
  39. indices.Clear();
  40. defaultIndice = new Indice("DVD", "DVD");
  41. indices.Add(defaultIndice);
  42. indices.Add(new Indice("VHS", "VHS"));
  43. indices.Add(new Indice("Video", "Tous les films"));
  44. }
  45.  
  46. private void initSoftwareIndices()
  47. {
  48. indices.Clear();
  49. defaultIndice = new Indice("Software", "Programmes");
  50. indices.Add(defaultIndice);
  51. indices.Add(new Indice("SoftwareVideoGames", "Jeux"));
  52. indices.Add(new Indice("VideoGames", "Jeux (Video)"));//?
  53. }
  54.  
  55. private void initMusicIndices()
  56. {
  57. indices.Clear();
  58. defaultIndice = new Indice("Music", "Musique");
  59. indices.Add(defaultIndice);
  60. indices.Add(new Indice("Classical", "Musique classique"));
  61. indices.Add(new Indice("DigitalMusic", "Musique (Numérique)"));
  62. //indices.Add(new Indice("DVD", "DVD"));//?
  63. indices.Add(new Indice("MusicTracks", "Musique (Pistes audio)"));
  64. }
  65.  
  66. private void initBookIndices()
  67. {
  68. indices.Clear();
  69. defaultIndice = new Indice("Books", "Livres");
  70. indices.Add(defaultIndice);
  71. indices.Add(new Indice("ForeignBooks", "Livres étrangers"));
  72. indices.Add(new Indice("Magazines", "Magazines"));
  73. }
  74.  
  75. private void initAllIndices()
  76. {
  77. indices.Clear();
  78. defaultIndice = new Indice("DVD", "DVD");
  79. indices.Add(defaultIndice);
  80. indices.Add(new Indice("Books", "Livres"));
  81. indices.Add(new Indice("Classical", "Musique classique"));
  82. indices.Add(new Indice("DigitalMusic", "Musique (Numérique)"));
  83. indices.Add(new Indice("ForeignBooks", "Livres étrangers"));
  84. indices.Add(new Indice("Hobbies", "Hobby"));
  85. indices.Add(new Indice("Magazines", "Magazines"));
  86. indices.Add(new Indice("Miscellaneous", "Divers"));
  87. indices.Add(new Indice("Music", "Musique"));
  88. indices.Add(new Indice("MusicTracks", "Musique (Pistes audio)"));
  89. indices.Add(new Indice("PCHardware", "Matériel PC"));
  90. indices.Add(new Indice("Software", "Programmes"));
  91. indices.Add(new Indice("SoftwareVideoGames", "Jeux"));
  92. indices.Add(new Indice("VHS", "VHS"));
  93. indices.Add(new Indice("Video", "Tous les films"));
  94. indices.Add(new Indice("VideoGames", "Jeux (Video)"));
  95. }
  96. #endregion
  97.  
  98. #region public methods
  99. public List<Indice> getIndices(CATEGORY cat)
  100. {
  101. if (category != cat)
  102. {
  103. initIndices(cat);
  104. }
  105. return indices;
  106. }
  107. public Indice getDefaultIndice()
  108. {
  109. return defaultIndice;
  110. }
  111. #endregion
  112.  
  113. #region innerclass indice
  114. public class Indice
  115. {
  116. private string value, display;
  117. public Indice(string value, string display)
  118. {
  119. this.value = value;
  120. this.display = display;
  121. }
  122. public string Display { get { return display; } }
  123. public string Value { get { return value; } }
  124. }
  125. #endregion
  126.  
  127. }
  128. }

Structure et Fichiers du projet

Afficher/masquer...


Répertoires contenus dans /var/www/bin/sniplets/bibliobrol/src/model/aws/ 
IcôneNomTailleModification
Pas de sous-répertoires.
IcôneNomTailleModification
| _ Répertoire parent0 octets1717331242 02/06/2024 14:27:22
Fichiers contenus dans /var/www/bin/sniplets/bibliobrol/src/model/aws/ 
IcôneNomTailleModificationAction
IcôneNomTailleModificationAction
Afficher le fichier .cs|.csAWSSearchResult.cs2.26 Ko31/10/2018 18:32:53-refusé-
Afficher le fichier .cs|.csAWSSearchIndices.cs4.46 Ko31/10/2018 18:32:53-refusé-
Afficher le fichier .cs|.csAWSFilm.cs7.99 Ko31/10/2018 18:32:53-refusé-
Afficher le fichier .cs|.csAWSHelper.cs9.27 Ko31/10/2018 18:32:53-refusé-

Utilisation de l'explorateur de code

  • Navigation :
    • Un clic sur une icône de répertoire ouvre ce répertoire pour en afficher les fichiers.
    • Lorsque le répertoire en cours ne contient pas de sous-répertoires il est possible de remonter vers le répertoire parent.
    • La structure de répertoires en treetable (tableau en forme d'arborescence) n'est plus possibledans cette version.
    • Un clic sur une icône de fichier ouvre ce fichier pour en afficher le code avec la coloration syntaxique adaptée en fonction du langage principal utilisé dans le fichier.
  • Affichage :
    • Il est possible de trier les répertoires ou les fichiers selon certains critères (nom, taille, date).
  • Actions :
    • Les actions possible sur les fichiers dépendent de vos droits d'utilisateur sur le site. Veuillez activer le mode utilisateur pour activer les actions.

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 16/10/2009 gemaakt, de laatste keer de 26/10/2018 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/cs-bibliobrol-source-rf-model/aws//AWSSearchIndices.cs.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.