Esempio n. 1
0
 public FileTreatment(string f1)
 {
     this.fichIn = f1;
     this.newData = ChargeData.getInstance();
     this.userList = new List<User>();
     this.commandList = new List<Command>();
 }
Esempio n. 2
0
 public InitialCharge(string f1)
 {
     this.file = f1;
     this.newData = ChargeData.getInstance();
     this.commandsList = new List<Command>();
     this.categoriesList = new List<Category>();
     this.modLog = ModuloLog.GetInstance(Constantes.MODULO_LOG);
 }
Esempio n. 3
0
 /// <summary>
 /// Método para implementar el Singleton que controlará los accesos a la clase actual
 /// </summary>
 /// <param name="usedCommand"></param>         
 public static ChargeData getInstance()
 {
     if (instance == null)
     {
         // Singleton
         instance = new ChargeData();
     }
     return instance;
 }
Esempio n. 4
0
 public AbstractWorker(bool returnUpdatedDbStats)
 {
     this.chargeData = ChargeData.getInstance();
     this.modLog = ModuloLog.GetInstance(Constantes.MODULO_LOG);
     this.returnUpdatedDbStats = returnUpdatedDbStats;
 }