public static void UnpackContacts(string contacts, ImagedLabelList contactList) { contactList.Labels.Clear(); if (string.IsNullOrEmpty(contacts)) return; contactList.Labels = new List<string>(contacts.Split(new[] { '\n' })); }
public static string PackContacts(ImagedLabelList contactList) { return string.Join("\n", contactList.Labels); }