Ejemplo n.º 1
0
        public LoaderFile(ref Database callDB, ref LogProgram logProgram)
        {
            this.database = callDB;
            this.logger   = logProgram;
            Config config = new Config();

            pathToFiles   = config.currentDirectory + pathToFiles;
            Path_Zip_Save = Current_Directory + "/Files/";
        }
Ejemplo n.º 2
0
        public MailF(Database callDB, LogProgram logProgram)
        {
            this.database = callDB;
            this.logger   = logProgram;
            Config config = new Config();

            this.ip          = config.IP;
            this.mailAddress = config.GetConfigValue("email_receive", "string");
            if (this.mailAddress == "*****@*****.**")
            {
                this.mailPassword = "******";
            }
            else
            {
                this.mailPassword = config.GetConfigValue("email_receive_password", "string");
            }
            SenderEmail = config.GetConfigValue("sender_email_name", "string");
            hostMail    = new MailboxAddress(ip, mailAddress);
        }
Ejemplo n.º 3
0
 public TaskManager(LogProgram logger)
 {
     this.logger = logger;
     SetNewLogFile();
 }