示例#1
0
        public Bicicletas()
        {
            InitializeComponent();

            StatusChecker.Check("Bicicletas");

            MobFoxAdControl.PublisherID = App.Configuration.MobFoxID;
            MobFoxAdControl.TestMode    = App.Configuration.MobFoxInTestMode;
        }
示例#2
0
        public RadioTaxis()
        {
            InitializeComponent();

            DataContext = ViewModel;
            Loaded     += RadioTaxis_Loaded;

            StatusChecker.Check("Taxi.RadioTaxis");
        }
示例#3
0
        public Home()
        {
            InitializeComponent();

            DataContext = ViewModel;
            Loaded     += (sender, args) =>
            {
                //_geoQo = new GeocodeQuery();
                //_geoQo.QueryCompleted += geoQ_OrigenQueryCompleted;
                //_geoQd = new GeocodeQuery();
                //_geoQd.QueryCompleted += geoQ_DestinoQueryCompleted;

                if (Initialized)
                {
                    return;
                }

                Initialized             = true;
                _getColectivoMapService = new GetColectivoMapService();
                _navHistory             = new Stack <int>();
                _navHistory.Push(0);
                BtnGpsOrigen.IsEnabled  = App.Configuration.IsLocationEnabled;
                BtnGpsDestino.IsEnabled = App.Configuration.IsLocationEnabled;
                ViewModel.BusquedaOrigen.Clear();
                ViewModel.BusquedaDestino.Clear();
                TxtOrigen.Text = "Seleccione origen";
                TxtOrigen.Tap += (o, eventArgs) =>
                {
                    PivotControl.SelectedIndex = 0;
                };
                TxtDestino.Text = "Seleccione destino";
                TxtDestino.Tap += (o, eventArgs) =>
                {
                    PivotControl.SelectedIndex = 1;
                };
            };
            //Unloaded += (sender, args) =>
            //    {
            //        if (_httpReq != null)
            //            _httpReq.Abort();
            //        if (_geoQo != null)
            //        {
            //            _geoQo.CancelAsync();
            //            _geoQo.Dispose();
            //        }
            //        if (_geoQd != null)
            //        {
            //            _geoQd.CancelAsync();
            //            _geoQd.Dispose();
            //        }
            //    };

            StatusChecker.Check("HomeRuta");
        }
示例#4
0
        public Home()
        {
            InitializeComponent();

            StatusChecker.Check("Colectivos");

            MobFoxAdControl.PublisherID = App.Configuration.MobFoxID;
            MobFoxAdControl.TestMode    = App.Configuration.MobFoxInTestMode;

            AcBox.ItemsSource       = DataColectivos.Repository.Select(x => x.Title);
            AcBox.FilterMode        = AutoCompleteFilterMode.Contains;
            _getColectivoMapService = new GetColectivoMapService();
        }
示例#5
0
        public BelgranoSur()
        {
            InitializeComponent();

            DataContext = ViewModel;
            Loaded     += Page_Loaded;
            Unloaded   += (sender, args) => DataService.CancelRequest();

            StatusChecker.Check("Trenes.BelgranoSur");

            ViewModel.Ramales.Clear();
            DataService.EndRequest   = EndRequest;
            DataService.StartRequest = StartRequest;
        }
示例#6
0
        public Sarmiento()
        {
            InitializeComponent();

            DataContext = ViewModel;
            Loaded     += Page_Loaded;
            Unloaded   += (sender, args) =>
            {
                DataService.CancelRequest();
                _dataRealTimeService.CancelRequest();
            };

            StatusChecker.Check("Trenes.Sarmiento");

            ViewModel.Ramales.Clear();
            DataService.EndRequest   = EndRequest;
            DataService.StartRequest = StartRequest;
        }
示例#7
0
        public Puntos()
        {
            InitializeComponent();

            TxtVersion.Text = "Versión " + App.Configuration.Version;

            MobFoxAdControl.PublisherID = App.Configuration.MobFoxID;
            MobFoxAdControl.TestMode    = App.Configuration.MobFoxInTestMode;


            RegionList.ItemsSource   = App.Configuration.GetRegions().Select(x => x.Value);
            RegionList.SelectedIndex = App.Configuration.SelectedRegion.HasValue ? App.Configuration.SelectedRegion.Value : 0;
            MarketList.ItemsSource   = App.Configuration.GetMarketsByRegions(RegionList.SelectedIndex).Select(x => x.Value);
            MarketList.SelectedIndex = App.Configuration.SelectedMarket.HasValue ? App.Configuration.SelectedMarket.Value : 0;

            if (!App.Configuration.SelectedMarket.HasValue ||
                !App.Configuration.SelectedRegion.HasValue)
            {
                SetApplicationBarEnabled(false);
                OptionSelectionPanel.Visibility = Visibility.Visible;
            }
            else
            {
                if (!App.Configuration.IsRated && App.Configuration.OpenCount > 2)
                {
                    if (MessageBox.Show("Queres calificar la aplicación?", "Ayudanos a mejorar", MessageBoxButton.OKCancel) == MessageBoxResult.OK)
                    {
                        App.Configuration.IsRated = true;
                        Config.Set(App.Configuration);

                        ShowReviewTask();
                    }
                }
            }

            StatusChecker.Check("Home");

            DataContext = ViewModel;
            Loaded     += Page_Loaded;
        }
示例#8
0
 public DondeUsarSUBE()
 {
     InitializeComponent();
     StatusChecker.Check("SUBE.DondeUsarSUBE");
 }
示例#9
0
        public Trenes()
        {
            InitializeComponent();

            StatusChecker.Check("TrenesHome");
        }
示例#10
0
 public PerdidaRoboDanio()
 {
     InitializeComponent();
     StatusChecker.Check("SUBE.PerdidaRoboDanio");
 }
示例#11
0
 public PreguntasFrecuentes()
 {
     InitializeComponent();
     StatusChecker.Check("SUBE.PreguntasFrecuentes");
 }
示例#12
0
        public Tarifas()
        {
            InitializeComponent();

            StatusChecker.Check("Taxi.Tarifas");
        }
示例#13
0
        public HomeSUBE()
        {
            InitializeComponent();

            StatusChecker.Check("SUBE");
        }
示例#14
0
 public ElSistema()
 {
     InitializeComponent();
     StatusChecker.Check("Bicicletas.ElSistema");
 }
示例#15
0
 public Inscripcion()
 {
     InitializeComponent();
     StatusChecker.Check("Bicicletas.Inscripcion");
 }
示例#16
0
 public ElServicio()
 {
     InitializeComponent();
     StatusChecker.Check("Bicicletas.ElServicio");
 }
 public AtencionAlUsuario()
 {
     InitializeComponent();
     StatusChecker.Check("SUBE.AtencionAlUsuario");
 }