Ejemplo n.º 1
0
 void HandleTriggerChangedState(object sender, TriggerManagerTriggerChangedStateEventArgs e)
 {
     if (e.Trigger.Identifier == TriggerId && e.Trigger.State)
     {
         Console.WriteLine("You forgot your bag!");
         var notification = new UILocalNotification();
         notification.AlertBody = "You forgot your bag!";
         UIApplication.SharedApplication.PresentLocalNotificationNow(notification);
     }
 }
 void HandleTriggerChangedState(object sender, TriggerManagerTriggerChangedStateEventArgs e)
 {
     LabelTime.Text = DateTime.Now.ToString("G");
 }