Beispiel #1
0
        public virtual FileStorageData Clone()
        {
            FileStorageData result = new FileStorageData();

            result.Provider   = this.Provider;
            result.Server     = this.Server;
            result.Port       = this.Port;
            result.RootFolder = this.RootFolder;
            result.UserName   = this.UserName;
            result.Password   = this.Password;
            result.Database   = this.Database;
            return(result);
        }
Beispiel #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);
        }