private void AddUwpModeItem() { XmlDocument doc = AppDic.ReadXml(AppConfig.WebUwpModeItemsDic, AppConfig.UserUwpModeItemsDic, Properties.Resources.UwpModeItemsDic); List <Guid> guids = new List <Guid>(); foreach (XmlElement sceneXE in doc.DocumentElement.ChildNodes) { if (sceneXE.Name == Scene.ToString()) { foreach (XmlElement itemXE in sceneXE.ChildNodes) { if (GuidEx.TryParse(itemXE.GetAttribute("Guid"), out Guid guid)) { if (guids.Contains(guid)) { continue; } string uwpName = GuidInfo.GetUwpName(guid); if (!string.IsNullOrEmpty(uwpName)) { this.AddItem(new UwpModeItem(uwpName, guid)); guids.Add(guid); } } } } } }