Exemple #1
0
 private async void Notificaciones_Clicked(object sender, EventArgs e)
 {
     if (Navigation != null)
     {
         var pgp = new Notificaciones();
         await Navigation.PushAsync(pgp);
     }
 }
Exemple #2
0
        private async void cambioConection(object sender)
        {
            bool conectividad = HayConectividad.Conectividad();

            if (conectividad)
            {
                await this.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.High, () => {
                    btnIniciarStream.IsEnabled = true;
                    Notificaciones.MostrarNotificacion("Se recuperó la conexión");
                });
            }
            else
            {
                await this.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.High, () => {
                    btnIniciarStream.IsEnabled = false;
                    Notificaciones.MostrarNotificacion("Se perdió la conexión");
                });
            }
        }