Пример #1
0
            // Display notofication after successfull adding to calendar
            public override void Completed(EKEventEditViewController controller, EKEventEditViewAction action)
            {
                eventController.DismissViewController(true, null);

                if (action == EKEventEditViewAction.Saved)
                {
                    AppNotifications.Display(new DisplayedPromptsModel()
                    {
                        Category = "", Task = "Task has been successfully scheduled"
                    });
                }
            }
Пример #2
0
        // completed is called when a user eith
        public override void Completed(EventKitUI.EKEventEditViewController controller, EKEventEditViewAction action)
        {
            eventController.DismissViewController(true, null);

            switch (action)
            {
            case EKEventEditViewAction.Canceled:
                break;

            case EKEventEditViewAction.Deleted:
                break;

            case EKEventEditViewAction.Saved:
                NSError error;
                eventStore.SaveEvent(controller.Event, EKSpan.ThisEvent, out error);
                break;
            }
        }