Exemple #1
0
        public override IEnumerable <Item> Perform(IEnumerable <Item> items, IEnumerable <Item> modifierItems)
        {
            string search_text;

            search_text = (items.First() as ITextItem).Text;
            return(GCal.SearchEvents(modifierItems.Cast <GCalendarItem> (), search_text).Cast <Item> ());
        }
Exemple #2
0
        protected override bool Validate(string username, string password)
        {
            if (ValidateUsername(username) && password.Length > 0)
            {
                return(GCal.TryConnect(username, password));
            }

            return(false);
        }
Exemple #3
0
 public override IEnumerable <Item> ChildrenOfItem(Item parent)
 {
     return(GCal.EventsForCalendar(parent as GCalendarItem).Cast <Item> ());
 }
Exemple #4
0
 public static GCalendarEventItem NewEvent(GCalendarItem calendar, string data)
 {
     return(GCal.NewEvent(calendar, data));
 }