Exemplo n.º 1
0
 /// <summary>
 /// Dispose controllers. This should only be called when you no longer require the
 /// controllers because after this, the controllers will be null and data will not be
 /// persisted.
 /// </summary>
 private void disposeControllers()
 {
     if (this.equipage != null)
     {
         this.equipage.Dispose();
         this.equipage = null;
     }
 }
Exemplo n.º 2
0
 public Personne(string prenom, string nom, int age, float salaire, Equipage fonction)
 {
     this.prenom   = prenom;
     this.nom      = nom;
     this.age      = age;
     this.salaire  = salaire;
     this.fonction = fonction;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Create controllers. Initializes the master equipage instance.
 /// </summary>
 private void createControllers()
 {
     this.equipage = new Equipage();
 }
Exemplo n.º 4
0
 /// <summary>
 /// Obtain necessary controllers from appropriate sources (for example: global data providers or a factory)
 /// </summary>
 private void acquireControllers()
 {
     this.equipage = EquipageModel.Instance.AcquireEquipage();
 }