Example #1
0
 public Servicio(ServicioItemViewModel item) {
       this._vm = item;
       InitializeComponent();
 }
Example #2
0
        // Code to execute when the application is launching (eg, from Start)
        // This code will not execute when the application is reactivated
        private void Application_Launching(object sender, LaunchingEventArgs e)
        {
            if (timer == null)
            {
                timer = new System.Threading.Timer((_) =>
                {
                    this.RootFrame.Dispatcher.BeginInvoke(() =>
                    {
                        if (!System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable() && !this.IsNetworkAvailable)
                        {
                            this.IsNetworkAvailable = false;
                            MessageBox.Show(TextosFront.frontMensajeConexionInternet);
                        }
                        else
                        {
                            this.IsNetworkAvailable = true;
                        }
                    });
                });
                timer.Change(0, 5000);
            }

            serviceRequest = new ServiceRequest2();

            Santander.DataAccess.Services.InitializeServices();
            Santander.DataAccess.Jsons.InitializeJsons();
            Santander.View.Views.InitializeViews();
            selectedEstatusTransferencia = null;
            selectedServicio = null;
            SelectedConsultaCuentasRegistradas = null;
        }