public void StoreValues(Data data, string path) { ApplicationSettings.StoreValues(data, path + @"ApplicationSettings\"); for (int i = 0; i < ConversionProfiles.Count; i++) { ConversionProfile tmp = ConversionProfiles[i]; tmp.StoreValues(data, @"" + path + @"ConversionProfiles\" + i + @"\"); } data.SetValue(@"" + path + @"ConversionProfiles\numClasses", ConversionProfiles.Count.ToString()); CreatorAppSettings.StoreValues(data, path + @"CreatorAppSettings\"); for (int i = 0; i < DefaultViewers.Count; i++) { DefaultViewer tmp = DefaultViewers[i]; tmp.StoreValues(data, @"" + path + @"DefaultViewers\" + i + @"\"); } data.SetValue(@"" + path + @"DefaultViewers\numClasses", DefaultViewers.Count.ToString()); }
public void StoreValues(Data data, string path) { Accounts.StoreValues(data, path + @"Accounts\"); for (int i = 0; i < DefaultViewers.Count; i++) { DefaultViewer tmp = DefaultViewers[i]; tmp.StoreValues(data, @"" + path + @"DefaultViewers\" + i + @"\"); } data.SetValue(@"" + path + @"DefaultViewers\numClasses", DefaultViewers.Count.ToString()); JobHistory.StoreValues(data, path + @"JobHistory\"); for (int i = 0; i < PrinterMappings.Count; i++) { PrinterMapping tmp = PrinterMappings[i]; tmp.StoreValues(data, @"" + path + @"PrinterMappings\" + i + @"\"); } data.SetValue(@"" + path + @"PrinterMappings\numClasses", PrinterMappings.Count.ToString()); for (int i = 0; i < TitleReplacement.Count; i++) { TitleReplacement tmp = TitleReplacement[i]; tmp.StoreValues(data, @"" + path + @"TitleReplacement\" + i + @"\"); } data.SetValue(@"" + path + @"TitleReplacement\numClasses", TitleReplacement.Count.ToString()); data.SetValue(@"" + path + @"AskSwitchDefaultPrinter", AskSwitchDefaultPrinter.ToString()); data.SetValue(@"" + path + @"Language", Data.EscapeString(Language)); data.SetValue(@"" + path + @"LastLoginVersion", Data.EscapeString(LastLoginVersion)); data.SetValue(@"" + path + @"LastSaveDirectory", Data.EscapeString(LastSaveDirectory)); data.SetValue(@"" + path + @"LastUsedProfileGuid", Data.EscapeString(LastUsedProfileGuid)); data.SetValue(@"" + path + @"LoggingLevel", LoggingLevel.ToString()); data.SetValue(@"" + path + @"PrimaryPrinter", Data.EscapeString(PrimaryPrinter)); data.SetValue(@"" + path + @"UpdateInterval", UpdateInterval.ToString()); }