/// <summary> /// 移除订阅源 /// </summary> void RemoveFeed() { Messenger.Default.Send <NotificationMessageWithCallback>(new NotificationMessageWithCallback("确定删除订阅源\"" + CurrentFeed.Name + "\"吗?", (Action)(async() => { if (NewFeeds.Contains(CurrentFeed)) { NewFeeds.Remove(CurrentFeed); await NewFeeds.SaveAsync(); } })), "ShowUserCheckedForm"); }
/// <summary> /// 确定添加订阅源 /// </summary> async void ConfirmAdd() { try { NewFeeds.Add(CurrentFeed); await CurrentFeed.RefreshAsync(); await NewFeeds.SaveAsync(); Messenger.Default.Send <NotificationMessage>(new NotificationMessage("成功添加"), "AddSuccess"); } catch (Exception ex) { } }