Révision 6f451cc1 GES_PAC/ViewModel/MainViewModel.cs
GES_PAC/ViewModel/MainViewModel.cs | ||
---|---|---|
51 | 51 |
#region Constructeur |
52 | 52 |
public MainViewModel() |
53 | 53 |
{ |
54 |
//ONLY FOR TESTS |
|
55 |
var date = DateTime.Now.AddHours(-2); |
|
56 |
var newDay = new Journee(date, PersonViewModel.Instance.Persons[0], PlaceViewModel.Instance.Places[0], ""); |
|
57 |
newDay.AddSet(new Serie(date, date, 25, 25, 25)); |
|
58 |
newDay.AddCalibration(new MesureCalibration(date, 50, 40, 500, TypeCalibration.Air, ""), PhaseCalibration.DEBUT); |
|
59 |
newDay.AddCalibration(new MesureCalibration(date, 0, 0, 1000000, TypeCalibration.Methane, "dazdazd"), PhaseCalibration.DEBUT); |
|
60 |
newDay.AddCalibration(new MesureCalibration(date, 30, 30, 3000, TypeCalibration.Melange, "deqsfsdf"), PhaseCalibration.DEBUT); |
|
61 |
newDay.GetCurrentSet().AddSerieAnimal(new SerieAnimal(1, 500, date, "")); |
|
62 |
newDay.GetCurrentSet().AddMeasure(new Mesure(date, 50, 50, 50), 1, false); |
|
63 |
JourneeViewModel.Instance.Journees.Add(newDay); |
|
64 |
//ONLY FOR TESTS |
|
65 | 54 |
|
66 | 55 |
GoToCreateDayCommand = new Command(async () => await GoToCreateDayPage()); |
67 | 56 |
ResumeDayCommand = new Command(async () => await ResumeDay()); |
Formats disponibles : Unified diff