示例#1
0
        protected override void SetStringValue(string value)
        {
            var newEvents = value.Split(new[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries).Where(ms => !string.IsNullOrEmpty(ms)).Select(ms => EventObject.FromString(ms)).ToList();

            this.Events = new ObservableCollection <EventObject>(newEvents);
        }