Example #1
0
        private void slider_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e)
        {
            shora = horaDespegue.Value.ToString();
            NeVuelo getHrDes = new NeVuelo();

            hora = getHrDes.getHoraDespegue(shora);
            labelHorasDespegue.Content = hora + " Hrs";
        }
        public Vuelo_Resumen(Tripulacion piloto, Tripulacion copiloto)
        {
            InitializeComponent();

            tri_piloto   = piloto;
            tri_copiloto = copiloto;

            aeronave = Sesion.GetValue <Aeronave>("aeronave");

            labelFeParida.Content    = Sesion.GetValue <DateTime>("fechaPartida").ToString("dd'/'MM'/'yyyy");
            labelHoraSalida.Content  = Sesion.GetValue <string>("showHoraPartida") + " Hrs";
            labelFeLlegada.Content   = Sesion.GetValue <DateTime>("fechaLlegada").ToString("dd'/'MM'/'yyyy");
            labelHoraLlegada.Content = Sesion.GetValue <string>("showHoraLlegada") + " Hrs";
            if (Sesion.GetValue <string>("horatotalvisual").Length == 2)
            {
                labelCantHorasVuelo.Content = Sesion.GetValue <string>("horatotalvisual") + " Minutos aprox.";
            }
            else
            {
                labelCantHorasVuelo.Content = Sesion.GetValue <string>("horatotalvisual") + " Hrs aprox.";
            }
            labelCondiVuelo.Content    = Sesion.GetValue <string>("NombreCondicionVuelo");
            labelCiudadOrigen.Content  = Sesion.GetValue <string>("origen");
            labelCiudadDestino.Content = Sesion.GetValue <string>("destino");
            labelKmDistancia.Content   = string.Format("{0} Km", Sesion.GetValue <double>("kmDistancia"));

            labelMatricula.Content          = aeronave.Matricula.ToUpper();
            labelMarca.Content              = aeronave.Marca;
            labelVencDgac.Content           = aeronave.VencimientoDgac;
            labelTipoAeronave.Content       = aeronave.TipoAeronave.NombreTipo;
            labelVelMaxAeronave.Content     = aeronave.Kmh;
            labelHorasVueloAeronave.Content = string.Format("{0} ({1})", Sesion.GetValue <double>("horavuelo"), nevuelo.getHoraDespegue(Sesion.GetValue <double>("horavuelo").ToString()));;

            labelRutPiloto.Content          = piloto.RutPiloto;
            labelNombrePiloto.Content       = piloto.Nombre;
            labelHorasPiloto.Content        = string.Format("{0} ({1})", piloto.CantidadHoras, nevuelo.getHoraDespegue(piloto.CantidadHoras.ToString()));
            labelTipoLicenciaPiloto.Content = piloto.TipoLicencia;

            labelRutCopiloto.Content          = copiloto.RutPiloto;
            labelNombreCopiloto.Content       = copiloto.Nombre;
            labelHorasCopiloto.Content        = string.Format("{0} ({1})", copiloto.CantidadHoras, nevuelo.getHoraDespegue(copiloto.CantidadHoras.ToString()));
            labelTipoLicenciaCopiloto.Content = copiloto.TipoLicencia;

            //////////////////////////////////////////
        }