private void OnStoryContainerUpdate(object sender, WdcStoryContainerEventArgs args) { if (args.EventType == WdcStoryContainerEventType.Add || args.EventType == WdcStoryContainerEventType.Remove) { RefreshStoryList(); } }
private void OnStoryContainerChanged(object sender, WdcStoryContainerEventArgs args) { //_log.Debug("Reacting to a change in stories"); // TODO: instead of cancelling the sync, // try to make the sync loop smart enough to react to changes in either syncing or about to sync stories // Was the current story removed? if (args.EventType == WdcStoryContainerEventType.Remove && args.StoryID == GetCurrentStatus().CurrentStoryID) { _log.Debug("The story being synced was removed, reacting"); Cancel(); } }