Esempio n. 1
0
 public clsGeneralSetting(SerializationInfo info, StreamingContext context)
 {
     this.LogMode                  = clsGeneralSetting.enLogType.GlobalRegistry;
     this._SETTINGS                = new Hashtable();
     this.FTP_Racine               = "/";
     this.SMTP_AuthReq             = true;
     this.LogInFile_Level          = 3;
     this.LogInADO_Level           = 3;
     this.LogInWinEvents_Level     = 0;
     this.ErrToMail_Level          = 0;
     this.ErrToMail_Limited        = false;
     this.ErrToMail_LimitedMinutes = 1;
     this.SaveSBO_Before_Limit     = 20;
     this.SaveSBO_After_Limit      = 100;
     try
     {
         this._SETTINGS                = (Hashtable)info.GetValue("_SETTINGS", this._SETTINGS.GetType());
         this.FTP_Serveur              = info.GetString("FTP_Serveur");
         this.FTP_UseSSL               = info.GetBoolean("FTP_UseSSL");
         this.FTP_Login                = info.GetString("FTP_Login");
         this._FTP_Password            = info.GetString("_FTP_Password");
         this.FTP_Racine               = info.GetString("FTP_Racine");
         this.SMTP_Server              = info.GetString("SMTP_Server");
         this.SMTP_UseSSL              = info.GetBoolean("SMTP_UseSSL");
         this.SMTP_AuthReq             = info.GetBoolean("SMTP_AuthReq");
         this.SMTP_Login               = info.GetString("SMTP_Login");
         this._SMTP_Pass               = info.GetString("_SMTP_Pass");
         this.SMTP_DefaultSender       = info.GetString("SMTP_DefaultSender");
         this.SMTP_SendToBCC           = info.GetBoolean("SMTP_SendToBCC");
         this.SMTP_BCC                 = info.GetString("SMTP_BCC");
         this.LogInFile                = info.GetBoolean("LogInFile");
         this.LogInFile_Directory      = info.GetString("LogInFile_Directory");
         this.LogInFile_Level          = info.GetInt32("LogInFile_Level");
         this.LogInSBOTools            = info.GetBoolean("LogInSBOTools");
         this.LogInADO                 = info.GetBoolean("LogInADO");
         this.LogInADO_DBName          = info.GetString("LogInADO_DBName");
         this.LogInADO_Level           = info.GetInt32("LogInADO_Level");
         this.LogInWinEvents           = info.GetBoolean("LogInWinEvents");
         this.LogInWinEvents_Level     = info.GetInt32("LogInWinEvents_Level");
         this.ErrToMail                = info.GetBoolean("ErrToMail");
         this.ErrToMail_Level          = info.GetInt32("ErrToMail_Level");
         this.ErrToMail_Limited        = info.GetBoolean("ErrToMail_Limited");
         this.ErrToMail_LimitedMinutes = info.GetInt32("ErrToMail_LimitedMinutes");
         this.ErrToMail_Sender         = info.GetString("ErrToMail_Sender");
         this.ErrToMail_Subject        = info.GetString("ErrToMail_Subject");
         this.ErrToMail_To             = info.GetString("ErrToMail_To");
         this.SaveSBO_Before           = info.GetBoolean("SaveSBO_Before");
         this.SaveSBO_Before_Limit     = info.GetInt32("SaveSBO_Before_Limit");
         this.SaveSBO_Before_Rep       = info.GetString("SaveSBO_Before_Rep");
         this.SaveSBO_After            = info.GetBoolean("SaveSBO_After");
         this.SaveSBO_After_Limit      = info.GetInt32("SaveSBO_After_Limit");
         this.SaveSBO_After_Rep        = info.GetString("SaveSBO_After_Rep");
     }
     catch (Exception exception)
     {
         ProjectData.SetProjectError(exception);
         ProjectData.ClearProjectError();
     }
 }
Esempio n. 2
0
        //static clsGeneralSetting()
        //{
        //    clsGeneralSetting.AppName = MyProject.Application.Info.ProductName;
        //    clsGeneralSetting.K = Objets.MD5(string.Concat(MyProject.Application.Info.ProductName, "K¨."), false);
        //}

        public clsGeneralSetting()
        {
            this.LogMode                  = clsGeneralSetting.enLogType.GlobalRegistry;
            this._SETTINGS                = new Hashtable();
            this.FTP_Racine               = "/";
            this.SMTP_AuthReq             = true;
            this.LogInFile_Level          = 3;
            this.LogInADO_Level           = 3;
            this.LogInWinEvents_Level     = 0;
            this.ErrToMail_Level          = 0;
            this.ErrToMail_Limited        = false;
            this.ErrToMail_LimitedMinutes = 1;
            this.SaveSBO_Before_Limit     = 20;
            this.SaveSBO_After_Limit      = 100;
        }