public MTimelineEvent(string _title, TimelineDateTime _startdate, int _length = 1) { Title = _title; startDate = _startdate; endDate = new TimelineDateTime(DateTime.UtcNow); startDate.CopyTo(ref endDate); endDate.Add(_length); }
public VMTimeline(Services.Base.ServiceContainer services) : base(services) { Timeline = new MTimeline(); TimelineDateTime tld = new TimelineDateTime(2018, 1); for (int i = 0; i < 10; i++) { Timeline.Events.Add(new MTimelineEvent("event1", tld, 2)); tld.Add(); } }