Aspose.Tasks.Examples.CSharp.WorkingWithProjects.Rescheduling.RescheduleProjectFromFinishDate.Run C# (CSharp) Метод

Run() публичный статический Метод

public static Run ( ) : void
Результат void
        public static void Run()
        {
            // ExStart:RescheduleProjectFromFinishDate
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName);

            Project project = new Project(dataDir + "Project2.mpp");
            project.Set(Prj.ScheduleFromStart, false);
            project.Set(Prj.FinishDate, new DateTime(2020, 1, 1));

            // Now all tasks dates (Start, Finish, EarlyStart, EarlyFinish, LateStart, LateFinish) are calculated. To get the critical path we need to calculate slacks (can be invoked in separate thread, but only after calculation of all early/late dates)
            project.Recalculate();
            TaskCollection criticalPath = project.CriticalPath;
            // ExEnd:RescheduleProjectFromFinishDate
        }
    }
RescheduleProjectFromFinishDate