private void BtnEnviarDiapositivas_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (!TxtBxNombreArchivo.Text.Equals(""))
         {
             Cursor = Cursors.Wait;
             BtnEnviarDiapositivas.IsEnabled = false;
             TxtBxNombreArchivo.IsEnabled    = false;
             var nombreArchivo      = TxtBxNombreArchivo.Text;
             var numeroDiapositivas = ConvertirDiapositivasASVG(nombreArchivo);
             Visor.Diapositivas = LeerTodosSVG(numeroDiapositivas, nombreArchivo);
             var diapositivas = new TPresentacion
             {
                 IdSalon     = IdSalon,
                 Diapositiva = Visor.Diapositivas
             };
             Conexion.PresentacionServiceCliente.enviarPresentacion(diapositivas);
             Cursor = Cursors.Arrow;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("Verifique que el nombre haya sido ingresado correctamente (ingrese solamente nombre, sin terminación)");
     }
 }
Exemple #2
0
            public void recibirPresentacion(TPresentacion tPresentacion)
            {
#if !SILVERLIGHT
                send_recibirPresentacion(tPresentacion);
#else
                var asyncResult = Begin_recibirPresentacion(null, null, tPresentacion);
#endif
            }
        public void recibirPresentacion(TPresentacion tPresentacion)
        {
            DiapositivasRecibidas = tPresentacion.Diapositiva;
            DiapositivaActiva     = 0;
            var diapositiva = DiapositivasRecibidas.ElementAt(0);

            Visor.WBsrVisor.Dispatcher.BeginInvoke(new Action <string>((diapositivaParaMostrar) =>
            {
                Visor.Show();
                Visor.MostrarDiapositiva(diapositivaParaMostrar, 0);
            }), new object[] { diapositiva });
        }
Exemple #4
0
            public void send_recibirPresentacion(TPresentacion tPresentacion)
#endif
            {
                oprot_.WriteMessageBegin(new TMessage("recibirPresentacion", TMessageType.Oneway, seqid_));
                recibirPresentacion_args args = new recibirPresentacion_args();

                args.TPresentacion = tPresentacion;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
#if SILVERLIGHT
                return(oprot_.Transport.BeginFlush(callback, state));
#else
                oprot_.Transport.Flush();
#endif
            }
Exemple #5
0
            public void Read(TProtocol iprot)
            {
                iprot.IncrementRecursionDepth();
                try
                {
                    TField field;
                    iprot.ReadStructBegin();
                    while (true)
                    {
                        field = iprot.ReadFieldBegin();
                        if (field.Type == TType.Stop)
                        {
                            break;
                        }
                        switch (field.ID)
                        {
                        case 1:
                            if (field.Type == TType.Struct)
                            {
                                TPresentacion = new TPresentacion();
                                TPresentacion.Read(iprot);
                            }
                            else
                            {
                                TProtocolUtil.Skip(iprot, field.Type);
                            }
                            break;

                        default:
                            TProtocolUtil.Skip(iprot, field.Type);
                            break;
                        }
                        iprot.ReadFieldEnd();
                    }
                    iprot.ReadStructEnd();
                }
                finally
                {
                    iprot.DecrementRecursionDepth();
                }
            }
Exemple #6
0
 public IAsyncResult Begin_recibirPresentacion(AsyncCallback callback, object state, TPresentacion tPresentacion)
 {
     return(send_recibirPresentacion(callback, state, tPresentacion));
 }
Exemple #7
0
 public IAsyncResult send_recibirPresentacion(AsyncCallback callback, object state, TPresentacion tPresentacion)