예제 #1
0
 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);
 }
예제 #2
0
        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();
            }
        }