AutoWikiBrowser.MainForm.NewHistory C# (CSharp) Method

NewHistory() private method

private NewHistory ( string pageTitle ) : void
pageTitle string
return void
        private void NewHistory(string pageTitle)
        {
            try
            {
                if (EditBoxTab.SelectedTab == tpHistory && pageTitle != null)
                {
                    string name = HttpUtility.UrlEncode(pageTitle);
                    if (webBrowserHistory.Url != new Uri(Variables.URLIndex + "?title=" + name
                                                         + "&action=history&printable=yes") && !string.IsNullOrEmpty(pageTitle)
                       )
                        webBrowserHistory.Navigate(Variables.URLIndex + "?title=" + name
                                                   + "&action=history&printable=yes");
                }
                else
                    webBrowserHistory.Navigate("about:blank");
            }
            catch
            {
                webBrowserHistory.Navigate("about:blank");

                if (webBrowserHistory.Document != null)
                    webBrowserHistory.Document.Write("<html><body><p>Unable to load history</p></body></html>");
            }
        }
MainForm