EntrepotFactory.cs 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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 IEntrepotATC entrepotATC;
  18. public static IEntrepotATC GetEntrepotATC()
  19. {
  20. if (entrepotATC == null)
  21. entrepotATC = new EntrepotATC();
  22. return entrepotATC;
  23. }
  24. private static IEntrepotBilinguisme entrepotBilinguisme;
  25. public static IEntrepotBilinguisme GetEntrepotBilinguisme()
  26. {
  27. if (entrepotBilinguisme == null)
  28. entrepotBilinguisme = new EntrepotBilinguisme();
  29. return entrepotBilinguisme;
  30. }
  31. private static IEntrepotDotation entrepotDotation;
  32. public static IEntrepotDotation GetEntrepotDotation()
  33. {
  34. if (entrepotDotation == null)
  35. entrepotDotation = new EntrepotDotation();
  36. return entrepotDotation;
  37. }
  38. private static IEntrepotEquipement entrepotEquipement;
  39. public static IEntrepotEquipement GetEntrepotEquipement()
  40. {
  41. if (entrepotEquipement == null)
  42. entrepotEquipement = new EntrepotEquipement();
  43. return entrepotEquipement;
  44. }
  45. private static IEntrepotInvestissement entrepotInvestissement;
  46. public static IEntrepotInvestissement GetEntrepotInvestissement()
  47. {
  48. if (entrepotInvestissement == null)
  49. entrepotInvestissement = new EntrepotInvestissement();
  50. return entrepotInvestissement;
  51. }
  52. private static IEntrepotLogement entrepotLogement;
  53. public static IEntrepotLogement GetEntrepotLogement()
  54. {
  55. if (entrepotLogement == null)
  56. entrepotLogement = new EntrepotLogement();
  57. return entrepotLogement;
  58. }
  59. private static IEntrepotMCG entrepotMCG;
  60. public static IEntrepotMCG GetEntrepotMCG()
  61. {
  62. if (entrepotMCG == null)
  63. entrepotMCG = new EntrepotMCG();
  64. return entrepotMCG;
  65. }
  66. private static IEntrepotProjetPilote entrepotProjetPilote;
  67. public static IEntrepotProjetPilote GetEntrepotProjetPilote()
  68. {
  69. if (entrepotProjetPilote == null)
  70. entrepotProjetPilote = new EntrepotProjetPilote();
  71. return entrepotProjetPilote;
  72. }
  73. private static IEntrepotRestaurationExterne entrepotRestaurationExterne;
  74. public static IEntrepotRestaurationExterne GetEntrepotRestaurationExterne()
  75. {
  76. if (entrepotRestaurationExterne == null)
  77. entrepotRestaurationExterne = new EntrepotRestaurationExterne();
  78. return entrepotRestaurationExterne;
  79. }
  80. private static IEntrepotContact entrepotContact;
  81. public static IEntrepotContact GetEntrepotContact()
  82. {
  83. if (entrepotContact == null)
  84. entrepotContact = new EntrepotContact();
  85. return entrepotContact;
  86. }
  87. private static IEntrepotChiffresSignificatifs entrepotChiffresSignificatifs;
  88. public static IEntrepotChiffresSignificatifs GetEntrepotChiffresSignificatifs()
  89. {
  90. if (entrepotChiffresSignificatifs == null)
  91. entrepotChiffresSignificatifs = new EntrepotChiffresSignificatifs();
  92. return entrepotChiffresSignificatifs;
  93. }
  94. private static IEntrepotCommentaires entrepotCommentaires;
  95. public static IEntrepotCommentaires GetEntrepotCommentaires()
  96. {
  97. if (entrepotCommentaires == null)
  98. entrepotCommentaires = new EntrepotCommentaires();
  99. return entrepotCommentaires;
  100. }
  101. private static IEntrepotRestauration entrepotRestauration;
  102. public static IEntrepotRestauration GetEntrepotRestauration()
  103. {
  104. if (entrepotRestauration == null)
  105. entrepotRestauration = new EntrepotRestauration();
  106. return entrepotRestauration;
  107. }
  108. private static IEntrepotProgTravaux entrepotProgTravaux;
  109. public static IEntrepotProgTravaux GetEntrepotProgTravaux()
  110. {
  111. if (entrepotProgTravaux == null)
  112. entrepotProgTravaux = new EntrepotProgTravaux();
  113. return entrepotProgTravaux;
  114. }
  115. private static IEntrepotEtablissement entrepotEtablissement;
  116. public static IEntrepotEtablissement GetEntrepotEtablissement()
  117. {
  118. if (entrepotEtablissement == null)
  119. entrepotEtablissement = new EntrepotEtablissement();
  120. return entrepotEtablissement;
  121. }
  122. }
  123. }