EntrepotFactory.cs 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using CG67.FicheCollege.Domaine;
  5. using CG67.FicheCollege.Interface;
  6. namespace CG67.FicheCollege.Entrepot
  7. {
  8. public static class EntrepotFactory
  9. {
  10. private static IEntrepotActionEducative entrepotActionEducative;
  11. public static IEntrepotActionEducative GetEntrepotActionEducative()
  12. {
  13. if (entrepotActionEducative == null)
  14. entrepotActionEducative = new EntrepotActionEducative();
  15. return entrepotActionEducative;
  16. }
  17. private static IEntrepotClasseDecouverte entrepotClasseDecouverte;
  18. public static IEntrepotClasseDecouverte GetEntrepotClasseDecouverte()
  19. {
  20. if (entrepotClasseDecouverte == null)
  21. entrepotClasseDecouverte = new EntrepotClasseDecouverte();
  22. return entrepotClasseDecouverte;
  23. }
  24. private static IEntrepotATC entrepotATC;
  25. public static IEntrepotATC GetEntrepotATC()
  26. {
  27. if (entrepotATC == null)
  28. entrepotATC = new EntrepotATC();
  29. return entrepotATC;
  30. }
  31. private static IEntrepotBilinguisme entrepotBilinguisme;
  32. public static IEntrepotBilinguisme GetEntrepotBilinguisme()
  33. {
  34. if (entrepotBilinguisme == null)
  35. entrepotBilinguisme = new EntrepotBilinguisme();
  36. return entrepotBilinguisme;
  37. }
  38. private static IEntrepotDotation entrepotDotation;
  39. public static IEntrepotDotation GetEntrepotDotation()
  40. {
  41. if (entrepotDotation == null)
  42. entrepotDotation = new EntrepotDotation();
  43. return entrepotDotation;
  44. }
  45. private static IEntrepotEquipement entrepotEquipement;
  46. public static IEntrepotEquipement GetEntrepotEquipement()
  47. {
  48. if (entrepotEquipement == null)
  49. entrepotEquipement = new EntrepotEquipement();
  50. return entrepotEquipement;
  51. }
  52. private static IEntrepotInvestissement entrepotInvestissement;
  53. public static IEntrepotInvestissement GetEntrepotInvestissement()
  54. {
  55. if (entrepotInvestissement == null)
  56. entrepotInvestissement = new EntrepotInvestissement();
  57. return entrepotInvestissement;
  58. }
  59. private static IEntrepotLogement entrepotLogement;
  60. public static IEntrepotLogement GetEntrepotLogement()
  61. {
  62. if (entrepotLogement == null)
  63. entrepotLogement = new EntrepotLogement();
  64. return entrepotLogement;
  65. }
  66. private static IEntrepotMCG entrepotMCG;
  67. public static IEntrepotMCG GetEntrepotMCG()
  68. {
  69. if (entrepotMCG == null)
  70. entrepotMCG = new EntrepotMCG();
  71. return entrepotMCG;
  72. }
  73. private static IEntrepotProjetPilote entrepotProjetPilote;
  74. public static IEntrepotProjetPilote GetEntrepotProjetPilote()
  75. {
  76. if (entrepotProjetPilote == null)
  77. entrepotProjetPilote = new EntrepotProjetPilote();
  78. return entrepotProjetPilote;
  79. }
  80. private static IEntrepotRestaurationExterne entrepotRestaurationExterne;
  81. public static IEntrepotRestaurationExterne GetEntrepotRestaurationExterne()
  82. {
  83. if (entrepotRestaurationExterne == null)
  84. entrepotRestaurationExterne = new EntrepotRestaurationExterne();
  85. return entrepotRestaurationExterne;
  86. }
  87. private static IEntrepotContact entrepotContact;
  88. public static IEntrepotContact GetEntrepotContact()
  89. {
  90. if (entrepotContact == null)
  91. entrepotContact = new EntrepotContact();
  92. return entrepotContact;
  93. }
  94. private static IEntrepotChiffresSignificatifs entrepotChiffresSignificatifs;
  95. public static IEntrepotChiffresSignificatifs GetEntrepotChiffresSignificatifs()
  96. {
  97. if (entrepotChiffresSignificatifs == null)
  98. entrepotChiffresSignificatifs = new EntrepotChiffresSignificatifs();
  99. return entrepotChiffresSignificatifs;
  100. }
  101. private static IEntrepotCommentaires entrepotCommentaires;
  102. public static IEntrepotCommentaires GetEntrepotCommentaires()
  103. {
  104. if (entrepotCommentaires == null)
  105. entrepotCommentaires = new EntrepotCommentaires();
  106. return entrepotCommentaires;
  107. }
  108. private static IEntrepotRestauration entrepotRestauration;
  109. public static IEntrepotRestauration GetEntrepotRestauration()
  110. {
  111. if (entrepotRestauration == null)
  112. entrepotRestauration = new EntrepotRestauration();
  113. return entrepotRestauration;
  114. }
  115. private static IEntrepotProgTravaux entrepotProgTravaux;
  116. public static IEntrepotProgTravaux GetEntrepotProgTravaux()
  117. {
  118. if (entrepotProgTravaux == null)
  119. entrepotProgTravaux = new EntrepotProgTravaux();
  120. return entrepotProgTravaux;
  121. }
  122. private static IEntrepotEtablissement entrepotEtablissement;
  123. public static IEntrepotEtablissement GetEntrepotEtablissement()
  124. {
  125. if (entrepotEtablissement == null)
  126. entrepotEtablissement = new EntrepotEtablissement();
  127. return entrepotEtablissement;
  128. }
  129. }
  130. }