/// <summary>
 /// Trys to parse an htmlpage
 /// </summary>
 private void UseParser(Object para)
 {
     DateTime startTime = DateTime.Now;
     //if its a link request
     if (para is LinkClass)
     {
         if (requestParserLink((LinkClass)para) == false)
         {
             return;
         }
     }
     //if its a search request
     else if (para is object[])
     {
         object[] searchparams = (object[])para;
         if (requestParserSearch((string)searchparams[0], (SearchType)searchparams[1]) == false)
         {
             return;
         }
     }
     //if its a server request
     else if (para == null)
     {
         if (requestParserServer() == false)
         {
             return;
         }
     }
     //start parsing html content
     RequestActionEventArgs ex = null; ;
     if (_completedHtml != null)
     {
         try
         {
             parser = new ParserMain();
             parser.Status += new EventHandler(parser_Status);
             ex = new RequestActionEventArgs(false, parser.GetPageList(_completedHtml), parser.GetPageType());
         }
         catch (Exception exc)
         {
             OnRequestAction(new MyErrorEventArgs(exc.Message));
             return;
         }
     }
     else
     {
         ex = new RequestActionEventArgs(false);
         return;
     }
     //get passed time
     TimeSpan span = DateTime.Now - startTime;
     OnRequestAction(ex);
     OnRequestAction(new RequestActionEventArgs("Loaded in " + span.TotalSeconds + " Sec"));
 }
 /// <summary>
 /// Checks the pageversion of connected jinzoraServer
 /// </summary>
 private void lookupPageVersion()
 {
     _completedHtml = request.Request("", true);
     parser = new ParserMain();
     loadServerlist();
     foreach (ServerListItem item in _serverlist)
     {
         if (item.ServerName == _serverItem.ServerName)
         {
             _serverItem = item;
         }
     }
     _serverItem.PageVersion = parser.GetJinzoraVersion(_completedHtml);
     _serverItem.Url = request.AbsoluteUrl;
     saveServerList();
     request.Status -= request_RequestError;
     request = new RequestClass(_serverItem);
     request.Status += new EventHandler(request_RequestError);
 }