private void Subscriber(DefaultEvent param)
 {
     switch (param.EventType)
     {
         case EventType.ClickComment:
             if (Config.IsSinglePageStatus(CurrentUIStatus))
             {
                 ((Frame)Window.Current.Content).Navigate(typeof(CommentPage));
             }
             break;
     }
 }
 private void Subscriber(DefaultEvent param)
 {
     if(!AuthorizationHelper.IsLogin)
     {
         //TODO: please login
         return;
     }
     switch(param.EventType)
     {
         case EventType.ClickFav:
             DataRequester.SetStoryFavorite(CurrentStoryId, param.IsChecked);
             break;
     }
 }
Exemplo n.º 3
0
 private void Subscriber(DefaultEvent param)
 {
     switch(param.EventType)
     {
         case EventType.CommentCount:
             CommentCount = param.Count.ToString();
             break;
         case EventType.LikeCount:
             LikeCount = param.Count.ToString();
             break;
     }
 }
Exemplo n.º 4
0
 private void Subscriber(DefaultEvent param)
 {
     switch(param.EventType)
     {
         case EventType.ClickMenu:
             MainView.IsPaneOpen = !MainView.IsPaneOpen;
             break;
     }
 }
Exemplo n.º 5
0
        private void Subscriber(DefaultEvent param)
        {
            switch(param.EventType)
            {
                case EventType.ClickMenu:
                    ResetCategoryPanel();
                    break;
                case EventType.ClickComment:
                    if (!Config.IsSinglePage)
                    {
                        StoryContentView.IsPaneOpen = !StoryContentView.IsPaneOpen;
                    }

                    if(Config.UIStatus == AppUIStatus.All)
                    {
                        StorageUtil.SetCommentPanelStatus(StoryContentView.IsPaneOpen);
                    }
                    break;
            }
        }