Пример #1
0
        private void WriteXml()
        {
            var xe = new XElement("Settings",
                                  new XElement("SessionId", SessionId),
                                  new XElement("SteamLogin", SteamLogin),
                                  new XElement("SteamLoginSecure", SteamLoginSecure),
                                  new XElement("SteamProfileUrl", SteamProfileUrl),
                                  new XElement("SteamParental", SteamParental),
                                  new XElement("SteamRememberLogin", SteamRememberLogin),
                                  new XElement("MachineAuth", MachineAuth),
                                  new XElement("IgnoreClient", IgnoreClient),
                                  new XElement("SteamAvatarUrl", SteamAvatarUrl),
                                  new XElement("SteamBackgroundUrl", SteamBackgroundUrl),
                                  new XElement("SteamUserName", SteamUserName),
                                  new XElement("SteamLevel", SteamLevel),
                                  new XElement("CustomBackgroundUrl", CustomBackgroundUrl),
                                  new XElement("SteamBadgeUrl", SteamBadgeUrl),
                                  new XElement("SteamBadgeTitle", SteamBadgeTitle),
                                  new XElement("BadgeFilter", BadgeFilter),
                                  new XElement("ShowcaseFilter", ShowcaseFilter),
                                  new XElement("IdleMode", IdleMode),
                                  new XElement("MaxIdleProcessCount", MaxIdleProcessCount),
                                  new XElement("PeriodicSwitchRepeatCount", PeriodicSwitchRepeatCount),
                                  new XElement("TrialPeriod", TrialPeriod),
                                  new XElement("SwitchMinutes", SwitchMinutes),
                                  new XElement("SwitchSeconds", SwitchSeconds),
                                  new XElement("AllowShowcaseSync", AllowShowcaseSync),
                                  new XElement("ShowInTaskbar", ShowInTaskbar),
                                  new XElement("ShowBackground", ShowBackground),
                                  new XElement("Dimensions", Dimensions),
                                  new XElement("PricesCatalogDate", PricesCatalogDate),
                                  new XElement("IdleQueue", String.Join(",", IdleQueue.Cast <string>())),
                                  new XElement("Blacklist", String.Join(",", Blacklist.Cast <string>())),
                                  new XElement("ShowcaseBookmarks", String.Join(",", ShowcaseBookmarks.Cast <string>())),
                                  new XElement("Games", String.Join(",", Games.Cast <string>())),
                                  new XElement("AppBrushes", String.Join(",", AppBrushes.Cast <string>()))
                                  );

            WriteContent(xe.ToString());
        }