public CompletableDataControl(Completable completable) { this.completable = completable; this.startDataControl = new MilestoneDataControl(completable.getStart()); this.endDataControl = new MilestoneDataControl(completable.getEnd()); this.progressDataControl = new ProgressDataControl(completable.getProgress()); this.scoreDataControl = new ScoreDataControl(completable.getScore()); }
public CompletableController(Completable completable) { this.Completable = completable; this.startController = new MilestoneController(completable.getStart()); this.endController = new MilestoneController(completable.getEnd()); this.progressControllers = completable .getProgress() .getMilestones() .ConvertAll(c => new MilestoneController(c)); }