반복되는 작업으로 작업합니다
Contents
[
Hide
Show
].NET를위한 태스크를 사용하면 개발자가 되풀이되는 작업을 생성하고 재발 패턴을 정의 할 수 있습니다.
새로운 반복 작업 추가
1Project project = new Project("New Project.mpp");
2RecurringTaskParameters parameters = new RecurringTaskParameters
3{
4 TaskName = "Recurring task",
5 Duration = project.GetDuration(1, TimeUnitType.Day),
6 RecurrencePattern =
7 new WeeklyRecurrencePattern
8 {
9 Repetition = new WeeklyRepetition
10 {
11 RepetitionInterval = 2,
12 WeekDays = WeekdayType.Sunday | WeekdayType.Monday | WeekdayType.Friday,
13 },
14 RecurrenceRange =
15 new EndByRecurrenceRange
16 {
17 Start = new DateTime(2018, 7, 1, 8, 0, 0),
18 Finish = new DateTime(2018, 7, 20, 17, 0, 0),
19 }
20 }
21};
22project.RootTask.Children.Add(parameters);