public Language(IPolicyLanguageTableCache pl) { InitializeComponent(); xmlTreeView1.Xml = pl.Content; }
private void ShowLanguage(IPolicyLanguageTableCache pl) { Language plForm = new Language(pl); ShowDetail(plForm); }
private XmlNode WriteLanguageInfo(XmlDocument xmlDoc, IPolicyLanguageTableCache language) { XmlElement lang = xmlDoc.CreateElement("Language"); XmlAttribute id = xmlDoc.CreateAttribute("id"); id.Value = Convert.ToString((language as LocalPolicyLanguageTableCache).ID, CultureInfo.InvariantCulture); XmlAttribute langAtt = xmlDoc.CreateAttribute("name"); langAtt.Value = language.Language.Code; XmlAttribute defaultAtt = xmlDoc.CreateAttribute("default"); defaultAtt.Value = language.Language.Default ? "true" : "false"; lang.Attributes.Append(id); lang.Attributes.Append(langAtt); lang.Attributes.Append(defaultAtt); XmlElement lang_content = xmlDoc.CreateElement("Content"); lang_content.InnerXml = language.Content; lang.AppendChild(lang_content); return lang; }