Exemplo n.º 1
0
 private void Archive_Click()
 {
     if (WikiPageCur == null)
     {
         return;
     }
     if (WikiPageCur.PageTitle == "Home")
     {
         MsgBox.Show(this, "Cannot archive homepage.");
         return;
     }
     if (!MsgBox.Show(this, MsgBoxButtons.OKCancel, "Archive this wiki page?  It will still be available from the Search window if needed."))
     {
         return;
     }
     WikiPages.Archive(WikiPageCur.PageTitle, Security.CurUser.UserNum);
     //historyNavBack--;//do not decrement, load will consider this a branch and put "wiki:Home" in place of the deleted page and remove "forward" history.
     LoadWikiPage("Home");
 }