예제 #1
0
        /// <summary>
        /// Opens the wiki window to a specific page from a specific wiki.
        /// </summary>
        public static void ShowPage(ModWiki wiki, WikiPage page)
        {
            if (wiki == null || page == null)
            {
                return;
            }

            if (WikiWindow.CurrentActive != null && WikiWindow.CurrentActive.Wiki == wiki)
            {
                WikiWindow.CurrentActive.CurrentPage = page;
            }
            else
            {
                WikiWindow.Open(wiki, page);
            }
        }
예제 #2
0
 /// <summary>
 /// Opens this wiki to whatever page was last opened.
 /// </summary>
 public void Show()
 {
     WikiWindow.Open(this);
 }