private void UseApiServer()
 {
     RequestActionEventArgs ex = new RequestActionEventArgs(false);
     try
     {
         api = new JinzoraApi(request.RequestXML(_serverItem.Url));
         api.Status += new EventHandler(api_Status);
         ex = new RequestActionEventArgs(false, api.GetLinkListe(), api.getPageType);
     }
     catch (Exception exc)
     {
         OnRequestAction(new MyErrorEventArgs(exc.Message));
         api.Status -= api_Status;
         return;
     }
     api.Status -= api_Status;
     OnRequestAction(ex);
 }
 private void UseApiLink(LinkClass link)
 {
     RequestActionEventArgs ex = new RequestActionEventArgs(false);
     try
     {
         api = new JinzoraApi(request.RequestXmlLink(link.UrlContent));
         api.Status += new EventHandler(api_Status);
         ex = new RequestActionEventArgs(false, api.GetLinkListe(), api.getPageType);
     }
     catch (Exception exc)
     {
         OnRequestAction(new MyErrorEventArgs(exc.Message));
         api.Status -= api_Status;
         return;
     }
     api.Status -= api_Status;
     OnRequestAction(ex);
 }