public ApplicationSettings Copy() { ApplicationSettings copy = new ApplicationSettings(); copy.Accounts = Accounts.Copy(); copy.JobHistory = JobHistory.Copy(); copy.PrinterMappings = new ObservableCollection <PrinterMapping>(); for (int i = 0; i < PrinterMappings.Count; i++) { copy.PrinterMappings.Add(PrinterMappings[i].Copy()); } copy.RssFeed = RssFeed.Copy(); copy.TitleReplacement = new ObservableCollection <TitleReplacement>(); for (int i = 0; i < TitleReplacement.Count; i++) { copy.TitleReplacement.Add(TitleReplacement[i].Copy()); } copy.UsageStatistics = UsageStatistics.Copy(); copy.ConversionTimeout = ConversionTimeout; copy.EnableTips = EnableTips; copy.Language = Language; copy.LicenseExpirationReminder = LicenseExpirationReminder; copy.LoggingLevel = LoggingLevel; copy.NextUpdate = NextUpdate; copy.UnitOfMeasurement = UnitOfMeasurement; copy.UpdateInterval = UpdateInterval; return(copy); }
public ApplicationSettings Copy() { ApplicationSettings copy = new ApplicationSettings(); copy.Accounts = Accounts.Copy(); copy.PrinterMappings = new List <PrinterMapping>(); for (int i = 0; i < PrinterMappings.Count; i++) { copy.PrinterMappings.Add(PrinterMappings[i].Copy()); } copy.TitleReplacement = new List <TitleReplacement>(); for (int i = 0; i < TitleReplacement.Count; i++) { copy.TitleReplacement.Add(TitleReplacement[i].Copy()); } copy.AskSwitchDefaultPrinter = AskSwitchDefaultPrinter; copy.Language = Language; copy.LastUsedProfileGuid = LastUsedProfileGuid; copy.LoggingLevel = LoggingLevel; copy.PrimaryPrinter = PrimaryPrinter; copy.UpdateInterval = UpdateInterval; return(copy); }
public ApplicationSettings Copy() { ApplicationSettings copy = new ApplicationSettings(); copy.Accounts = Accounts.Copy(); copy.DefaultViewers = new ObservableCollection <DefaultViewer>(); for (int i = 0; i < DefaultViewers.Count; i++) { copy.DefaultViewers.Add(DefaultViewers[i].Copy()); } copy.JobHistory = JobHistory.Copy(); copy.PrinterMappings = new ObservableCollection <PrinterMapping>(); for (int i = 0; i < PrinterMappings.Count; i++) { copy.PrinterMappings.Add(PrinterMappings[i].Copy()); } copy.TitleReplacement = new ObservableCollection <TitleReplacement>(); for (int i = 0; i < TitleReplacement.Count; i++) { copy.TitleReplacement.Add(TitleReplacement[i].Copy()); } copy.AskSwitchDefaultPrinter = AskSwitchDefaultPrinter; copy.Language = Language; copy.LastLoginVersion = LastLoginVersion; copy.LastSaveDirectory = LastSaveDirectory; copy.LastUsedProfileGuid = LastUsedProfileGuid; copy.LoggingLevel = LoggingLevel; copy.PrimaryPrinter = PrimaryPrinter; copy.UpdateInterval = UpdateInterval; return(copy); }