예제 #1
0
        public static void GetCatActivas(ServiceRequest2 serviceRequest, ServiceRequestEventHandler<List<Servicio>> asyncCallback, ReqGetCatActivas requestData)
        {
#if OFFLINE
            serviceRequest.BeginWebRequestOffline<ResGetCatActivas, List<Servicio>>(service._serviceGetCatActivas, asyncCallback, json._jsonGetActivas);
#else
            new Thread(() => { serviceRequest.BeginWebRequest<ResGetCatActivas, List<Servicio>, ReqGetCatActivas>(service._serviceGetCatActivas, asyncCallback, requestData); }).Start();
#endif
        }
예제 #2
0
        private void CatalogoServicios()
        {
            ReqGetCatActivas req = new ReqGetCatActivas();
            req.tabNumber = 0.ToString();

            this._servicios.Clear();
            Services.GetCatActivas(base.ServiceRequest, ResponseCatalogoServicios, req);
        }