private void Initialize() { GeneralSettings = new GeneralSettingsModel(); CurrencySettings = new CurrencySettingsModel(); RakeBackSettings = new RakeBackSettingsModel(); DatabaseSettings = new DatabaseSettings(); SiteSettings = new SiteSettingsModel(); }
public override object Clone() { var model = new SiteSettingsModel { IsProcessedDataLocationEnabled = IsProcessedDataLocationEnabled, ProcessedDataLocation = ProcessedDataLocation }; for (int i = 0; i < model.SitesModelList.Count(); i++) { var siteModel = SitesModelList.FirstOrDefault(x => x.PokerSite == model.SitesModelList[i].PokerSite); if (siteModel != null) { model.SitesModelList[i] = (SiteModel)siteModel.Clone(); } } return(model); }