public static IObservable <bool> LoadEnabledClipboard() { var enabledClipboard = IsEnabledClipboard(); if (!enabledClipboard) { return(new BehaviorSubject <bool>(enabledClipboard)); } return(PinboardService.GetInstance().IsLogin()); }
public void LoadPostFromDB(Action action) { PinboardService.LockAndUsingDB(context => { RefreshPostItems(context.Items.OfType <Post>()); RefreshFeedItems(context.Items.OfType <FeedItem>(), true); }, false); if (action != null) { action(); } }