public virtual ConfigSettingData Clone() { ConfigSettingData result = new ConfigSettingData(); if (this.FileStorage != null) { result.FileStorage = this.FileStorage.Clone(); } return(result); }
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); }