Example #1
0
 void Application_DocumentChange()
 {
     //Reassign values to the document and wiki page states.
     lastActiveDocument         = ActiveDocumentInstance;
     lastActiveDocumentFullName = ActiveDocumentFullName;
     activeDocumentContent      = ActiveDocumentContentRange;
     //if current document is a wiki page.
     if (EditedPages.ContainsKey(lastActiveDocumentFullName))
     {
         currentPageFullName  = EditedPages[lastActiveDocumentFullName];
         CurrentPagePublished = false;
         if (PublishedStatus.ContainsKey(currentPageFullName))
         {
             if (PublishedStatus[currentPageFullName])
             {
                 CurrentPagePublished = true;
             }
         }
     }
     else
     {
         currentPageFullName  = null;
         CurrentPagePublished = false;
     }
 }