Exemplo n.º 1
0
        public static async Task <PrintEstado> ProcesaRegistraGriferoCara()
        {
            PrintEstado Respueta = PrintEstado.ErrorSistema;
            await Task.Run(() =>
            {
                TS_BELado input = new TS_BELado()
                {
                    cdvendedor = CdVendedor,
                    lado       = Lado,
                    nropos     = NroPos
                };

                TS_SIImpresionClient cliente = null;
                try
                {
                    cliente = new TS_SIImpresionClient(Helper.ServicioSoapBinding(), new EndpointAddress(Config.Services.Impresion));
                    _REGISTRAR_GRIFERO_LADOSCompleted(cliente.REGISTRAR_GRIFERO_LADOS(input));
                    Respueta = PrintEstado.EsperandoRespuesta;
                }
                catch
                {
                    Respueta = PrintEstado.ErrorSistema;
                }
                finally
                {
                    if (cliente != null)
                    {
                        if (cliente.State == CommunicationState.Opened)
                        {
                            cliente.Close();
                        }
                    }
                }
            });

            return(Respueta);
        }
 private void ListView_SwipeEnded(object sender, Syncfusion.ListView.XForms.SwipeEndedEventArgs e)
 {
     itemIndex = (TS_BELado)e.ItemData;
 }
 private void ListView_SwipeStarted(object sender, Syncfusion.ListView.XForms.SwipeStartedEventArgs e)
 {
     itemIndex = null;
 }