internal static string GetValue(OccurrenceInfo occur, bool singleLine)
        {
            string text = string.Format(System.Globalization.CultureInfo.CurrentCulture, "Original Start: {0}\nStart: {1}\nEnd: {2}\nItemId: {3}",
                                        occur.OriginalStart,
                                        occur.Start,
                                        occur.End,
                                        ItemIdTypeValue.GetValue(occur.ItemId, true));

            if (singleLine)
            {
                return(text.Replace("\n", ""));
            }

            return(text);
        }
Esempio n. 2
0
        internal static string GetValue(Attendee attendee, bool singleLine)
        {
            if (attendee == null)
            {
                return(string.Empty);
            }

            StringBuilder value = new StringBuilder();

            value.AppendLine("Address: " + attendee.Address);
            value.AppendLine("Id: " + ItemIdTypeValue.GetValue(attendee.Id, singleLine));
            value.AppendLine("LastResponseTime: " + attendee.LastResponseTime.ToString());
            value.AppendLine("MailboxType: " + attendee.MailboxType.ToString());
            value.AppendLine("Name: {0}" + attendee.Name);
            value.AppendLine("ResponseType: " + attendee.ResponseType);
            value.AppendLine("RoutingType: {0}" + attendee.RoutingType);

            if (singleLine)
            {
                return(value.ToString().Replace("\n", ""));
            }

            return(value.ToString());
        }