コード例 #1
0
 public void ReplySuccess(Board b)
 {
     MessageBox.Show("发布成功!");
     QuitReply();
 }
コード例 #2
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            string boardName = this.NavigationContext.QueryString["board"];
            int page;
            if (this.NavigationContext.QueryString.ContainsKey("page"))
            {
                try
                {
                    page = int.Parse(this.NavigationContext.QueryString["page"]);
                }
                catch (Exception exception)
                {
                    exception.ToString();
                    page = 1;
                }
            }
            else
            {
                page = 1;
            }

            string friendlyBoardName = "";
            if (this.NavigationContext.QueryString.ContainsKey("fname"))
            {
                friendlyBoardName = this.NavigationContext.QueryString["fname"];
                currentBoardName = friendlyBoardName;
            }
            else
            {
                friendlyBoardName = currentBoardName;
            }

            Board board;
            if (App.IsRecovered == true && currentData != null)
            {
                board = currentData;
                App.IsRecovered = false;
            }
            else
            {
                ShowPopup();
                board = new Board();
                board.Description = friendlyBoardName;
                board.GetBoardInfo(boardName, 20, page);
                board.RelatedPop = this.popup;
            }

            DataContext = board;
            boardList.ItemsSource = board.GUIArticles;

            currentData = board;
        }