Archived
1
0

Notification system development 2

This commit is contained in:
Michael Gordeev
2018-10-24 22:00:47 +03:00
parent 1a93ea4801
commit df6d9c4aab
5 changed files with 18 additions and 21 deletions
+3 -4
View File
@@ -45,9 +45,7 @@ namespace FoxTube.Pages.SettingsPages
items.Add(new InboxItem(
e.GetAttribute("version"),
e["content"].InnerText,
e.GetAttribute("time"),
e.GetAttribute("id")
));
e.GetAttribute("time")));
doc.Load("http://foxgame.hol.es/foxtube-messages.xml");
foreach (XmlElement e in doc["posts"].ChildNodes)
@@ -141,8 +139,9 @@ namespace FoxTube.Pages.SettingsPages
}
}
public void Open(string id)
public void Open(string arg)
{
string id = arg.Split('&')[1];
InboxItem item = items.Find(x => x.Id == id);
if(item != null)
list.SelectedIndex = items.IndexOf(item);