Exemplo n.º 1
0
 /// <summary>Creates a new ES3Settings object with the given path.</summary>
 /// <param name="path">The path associated with this ES3Settings object.</param>
 /// <param name="enums">Accepts an ES3.EncryptionType, ES3.CompressionType, ES3.Location, ES3.Directory or ES3.ReferenceMode.</param>
 public ES3Settings(params System.Enum[] enums) : this(true)
 {
     foreach (var setting in enums)
     {
         if (setting is ES3.EncryptionType)
         {
             this.encryptionType = (ES3.EncryptionType)setting;
         }
         else if (setting is ES3.Location)
         {
             this.location = (ES3.Location)setting;
         }
         else if (setting is ES3.CompressionType)
         {
             this.compressionType = (ES3.CompressionType)setting;
         }
         else if (setting is ES3.ReferenceMode)
         {
             this.referenceMode = (ES3.ReferenceMode)setting;
         }
         else if (setting is ES3.Format)
         {
             this.format = (ES3.Format)setting;
         }
         else if (setting is ES3.Directory)
         {
             this.directory = (ES3.Directory)setting;
         }
     }
 }
 /// <summary>Creates a new ES3Settings object with the given path and encryption settings.</summary>
 /// <param name="path">The path associated with this ES3Settings object.</param>
 /// <param name="encryptionType">The type of encryption to use, if any.</param>
 /// <param name="encryptionPassword">The password to use when encrypting data.</param>
 /// <param name="settings">The settings we want to use to override the default settings.</param>
 public ES3Settings(string path, ES3.EncryptionType encryptionType, string encryptionPassword, ES3Settings settings) : this(path, settings)
 {
     this.encryptionType     = encryptionType;
     this.encryptionPassword = encryptionPassword;
 }
 /// <summary>Creates a new ES3Settings object with the given encryption settings.</summary>
 /// <param name="encryptionType">The type of encryption to use, if any.</param>
 /// <param name="encryptionPassword">The password to use when encrypting data.</param>
 public ES3Settings(ES3.EncryptionType encryptionType, string encryptionPassword) : this()
 {
     this.encryptionType     = encryptionType;
     this.encryptionPassword = encryptionPassword;
 }