Exemplo n.º 1
0
        private string GetActionString(CalendarItemAction action)
        {
            string output = "";

            if (action.HasFlag(CalendarItemAction.GoogleAdd))
            {
                output += "Add to Google | ";
            }

            if (action.HasFlag(CalendarItemAction.GoogleUpdate))
            {
                output += "Update Google | ";
            }

            if (action.HasFlag(CalendarItemAction.GoogleDelete))
            {
                output += "Delete from Google | ";
            }

            if (action.HasFlag(CalendarItemAction.OutlookAdd))
            {
                output += "Add to Outlook | ";
            }

            if (action.HasFlag(CalendarItemAction.OutlookUpdate))
            {
                output += "Update Outlook | ";
            }

            if (action.HasFlag(CalendarItemAction.OutlookDelete))
            {
                output += "Delete from Outlook | ";
            }

            return(output.TrimEnd(new [] { ' ', '|' }));
        }
Exemplo n.º 2
0
 public AutoSyncEvent()
 {
     Pair    = null;
     EntryId = null;
     Action  = CalendarItemAction.Nothing;
 }