Esempio n. 1
0
        public static IObservable <bool> LoadEnabledClipboard()
        {
            var enabledClipboard = IsEnabledClipboard();

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