예제 #1
0
 public FileTreatment(string f1)
 {
     this.fichIn = f1;
     this.newData = ChargeData.getInstance();
     this.userList = new List<User>();
     this.commandList = new List<Command>();
 }
예제 #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);
 }
예제 #3
0
파일: ChargeData.cs 프로젝트: 100052610/PFC
 /// <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;
 }
예제 #4
0
 public AbstractWorker(bool returnUpdatedDbStats)
 {
     this.chargeData = ChargeData.getInstance();
     this.modLog = ModuloLog.GetInstance(Constantes.MODULO_LOG);
     this.returnUpdatedDbStats = returnUpdatedDbStats;
 }