1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
MyProject.Calendar.BuildYear()
//ou
MyProject.Pert.Build()
//Je simplifie :
class Project {
public Calendar CalendarMode = new Calendar();
public Pert PertMode = new Pert();
}
interface IBuildYear {
void build() {}
}
interface IBuildMonth {
void build() {}
}
interface IBuildWeek {
void build() {}
}
interface IBuildDay {
void build() {}
}
class IBuilder:IBuildYear,IBuildMonth,IBuildWeek,IBuildDay {
public IBuilder(enDisplayPeriods DisplayPeriod){
}
} |
Partager