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; } }
private void Subscriber(DefaultEvent param) { switch(param.EventType) { case EventType.CommentCount: CommentCount = param.Count.ToString(); break; case EventType.LikeCount: LikeCount = param.Count.ToString(); break; } }
private void Subscriber(DefaultEvent param) { switch(param.EventType) { case EventType.ClickMenu: MainView.IsPaneOpen = !MainView.IsPaneOpen; break; } }
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; } }