ChiffresSignificatifs.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace CG67.FicheCollege.Domaine
  5. {
  6. [Serializable]
  7. public class ChiffresSignificatifs
  8. {
  9. /// <summary>
  10. /// Montant total des financements sur les collèges.
  11. /// </summary>
  12. private double mMontantTotalFinancements;
  13. /// <summary>
  14. /// Nombre total de collégiens.
  15. /// </summary>
  16. private int mNbTotalEleves;
  17. /// <summary>
  18. /// Montant total des investissments sur les collèges.
  19. /// </summary>
  20. private double mMontantTotalInvestissement;
  21. /// <summary>
  22. /// Montant total du coût des transports scolaires.
  23. /// </summary>
  24. private double mMontantTotalTransportScolaire;
  25. public double MontantTotalFinancements
  26. {
  27. get { return mMontantTotalFinancements; }
  28. set { mMontantTotalFinancements = value; }
  29. }
  30. public int NbTotalEleves
  31. {
  32. get { return mNbTotalEleves; }
  33. set { mNbTotalEleves = value; }
  34. }
  35. public double MontantTotalInvestissement
  36. {
  37. get { return mMontantTotalInvestissement; }
  38. set { mMontantTotalInvestissement = value; }
  39. }
  40. public double MontantTotalTransportScolaire
  41. {
  42. get { return mMontantTotalTransportScolaire; }
  43. set { mMontantTotalTransportScolaire = value; }
  44. }
  45. public ChiffresSignificatifs(double totalFinance, int totalEleve, double totalInvest, double totalTransport)
  46. {
  47. this.mMontantTotalFinancements = totalFinance;
  48. this.mNbTotalEleves = totalEleve;
  49. this.mMontantTotalInvestissement = totalInvest;
  50. this.mMontantTotalTransportScolaire = totalTransport;
  51. }
  52. public ChiffresSignificatifs() { }
  53. }
  54. }