public void ReadXml(System.Xml.XmlElement element) { element.ReadChildListXml(servers, Server.CreateFromXml, "server", "servers"); element.ReadChildListXml(highlights, Highlight.CreateFromXml, "highlight", "highlights"); this.BadgeDisplay = element.GetEnumAttribute<BadgeDisplayMode>("badgeDisplay") ?? BadgeDisplayMode.Highlighted; this.UseMetroTheme = element.GetBoolAttribute("useMetroTheme") ?? false; }
public override void ReadXml (System.Xml.XmlElement element) { base.ReadXml (element); this.UseSocialLogin = element.GetBoolAttribute ("useSocialLogin") ?? false; this.Address = element.GetStringAttribute ("address"); if (this.UseSocialLogin) { this.JanrainAppName = element.GetStringAttribute ("janrainAppName") ?? "jabbr"; this.UserId = JabbRApplication.Instance.DecryptString(this.Address, this.Id, element.GetStringAttribute ("userId")); } else { this.UserName = JabbRApplication.Instance.DecryptString(this.Address, this.Id + "_user", element.GetStringAttribute ("userName")); this.Password = JabbRApplication.Instance.DecryptString(this.Address, this.Id + "_pass", element.GetStringAttribute ("password")); } }