Exemplo n.º 1
0
        public virtual ConfigSettingData Clone()
        {
            ConfigSettingData result = new ConfigSettingData();

            if (this.FileStorage != null)
            {
                result.FileStorage = this.FileStorage.Clone();
            }
            return(result);
        }
Exemplo n.º 2
0
        public static ConfigSettingData CreateSettings(FMPConfigurationSection configData)
        {
            ConfigSettingData result = null;

            if (configData != null)
            {
                result = new ConfigSettingData();
                FileStorageData fileStorage = new FileStorageData();
                result.FileStorage = fileStorage;
                FileStorageElement eFileStorage = configData.FileStorage;
                fileStorage.Provider   = eFileStorage.Provider;
                fileStorage.Server     = eFileStorage.Server;
                fileStorage.Port       = eFileStorage.Port;
                fileStorage.RootFolder = eFileStorage.RootFolder;
                fileStorage.UserName   = eFileStorage.UserName;
                fileStorage.Password   = eFileStorage.Password;
                fileStorage.Database   = eFileStorage.Database;
            }
            return(result);
        }