示例#1
0
        public Calculator(GeneralObject myGeneralObject)
        {
            this.db = new DevisFacturationEntities();
            this.ResultSumManager = new SumManager();
            this.genObject        = myGeneralObject;
            DateTime longDate = DateTime.Now;
            string   basePath = System.AppDomain.CurrentDomain.BaseDirectory;

            Directory.CreateDirectory(basePath + @"\Content\Devis" + longDate.Year.ToString() + "_" + longDate.AddMonths(-1).Month);
            this.logFile = new StreamWriter(basePath + @"\Content\Devis" + longDate.Year.ToString() + "_" + longDate.AddMonths(-1).Month + @"\Calcul.txt");
        }
示例#2
0
 public FileFiller(dynamic fichier, bool isFactu, SumManager sumManager, GeneralObject genObject)
 {
     this.generator = new WordFileGenerator(genObject, sumManager, fichier, isFactu);
 }