void HandleTriggerChangedState(object sender, TriggerChangedStateArgsEventArgs 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, TriggerChangedStateArgsEventArgs 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, TriggerChangedStateArgsEventArgs e)
 {
     LabelTime.Text = DateTime.Now.ToString ("G");
 }
示例#4
0
 void HandleTriggerChangedState(object sender, TriggerChangedStateArgsEventArgs e)
 {
     LabelTime.Text = DateTime.Now.ToString("G");
 }