Ejemplo n.º 1
0
        private void Initialize()
        {
            if (bInitialized)
            {
                return;
            }

            string siteID    = NavigationContext.QueryString["siteID"];
            string boardID   = NavigationContext.QueryString["boardID"];
            string boardName = NavigationContext.QueryString["boardName"];

            IBoard board = App.Current.SiteManager.GetBoard(siteID, boardID, boardName);

            if (!board.Site.CanLogin)
            {
                LoginStatus.Visibility = Visibility.Collapsed;
            }

            viewArticleListPivotItem = new ViewArticleListPivotItem(this, board);

            GalleryTitle.Text = board.DisplayTitle; // 왼쪽 상단 갤러리 이름 적기
            MainPivot.Items.Clear();
            MainPivot.Items.Add(viewArticleListPivotItem);

            viewArticleListPivotItem.RefreshArticleList(); // 리스트 갱신

            bInitialized = true;
        }
Ejemplo n.º 2
0
        public void Search(IBoard board, string text, SearchType searchType)
        {
            // 새로운 searchBoard 를 만든다
            viewSearchArticleListPivotItem = new ViewSearchArticleListPivotItem(this, board, text, searchType);

            // 목록창은 항상 0번에
            MainPivot.Items[0]      = viewSearchArticleListPivotItem;
            MainPivot.SelectedIndex = 0;
            UpdatePivotItem(viewSearchArticleListPivotItem);

            viewSearchArticleListPivotItem.RefreshArticleList();
            this.Focus();
        }
Ejemplo n.º 3
0
 public void RefreshArticleList()
 {
     viewArticleListPivotItem.RefreshArticleList(); // 리스트 갱신
 }