Skip to content

TimePeriodChain not recalculating after changing an inner TimerPeriod  #9

Description

@ahmedrz

i think the TimePeriodChain should recalculate the duration and other properties when the child period get moved or expanded.
for example :
TimeRange range1 = new TimeRange(DateTime.Now.Date, TimeSpan.FromDays(10)); TimeRange range2 = new TimeRange(DateTime.Now.Date.AddDays(5), TimeSpan.FromDays(2)); TimePeriodChain chain = new TimePeriodChain(); range1.ExpandEndTo(DateTime.Now.Date.AddDays(15));

after running this code the duration should be 17days but now it says 12. which is now correct.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions