No cache version.

Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.

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 octets1719814139 01/07/2024 08:08:59
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.

English translation

You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.

If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.

Thank you in advance.

Document created the 16/10/2009, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/cs-bibliobrol-source-rf-model/aws/AWSSearchIndices.cs.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.