Notification system development 2
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user