Brook.ZhiHuRiBao.Pages.MainPage.Subscriber C# (CSharp) Метод

Subscriber() приватный Метод

private Subscriber ( StoryEvent param ) : void
param Brook.ZhiHuRiBao.Events.StoryEvent
Результат void
        private void Subscriber(StoryEvent param)
        {
            switch(param.Type)
            {
                case StoryEventType.Menu:
                    ResetCategoryPanel();
                    break;
                case StoryEventType.Comment:
                    if (!Config.IsSinglePage)
                    {
                        StoryContentView.IsPaneOpen = !StoryContentView.IsPaneOpen;
                    }

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