Révision 12ddf7ef GES_PAC/ViewModel/MainViewModel.cs
GES_PAC/ViewModel/MainViewModel.cs | ||
---|---|---|
1 |
using GES_PAC.Model; |
|
1 | 2 |
using GES_PAC.Services; |
2 | 3 |
using GES_PAC.View; |
3 | 4 |
|
... | ... | |
16 | 17 |
#region Constructeur |
17 | 18 |
public MainViewModel(ConnexionService connService) |
18 | 19 |
{ |
20 |
//ONLY FOR TESTS |
|
21 |
var date = DateTime.Now; |
|
22 |
var newDay = new Journee(date, PersonViewModel.Instance.Persons[0], PlaceViewModel.Instance.Places[0], ""); |
|
23 |
newDay.AddSet(new Serie(date, date, 25, 25, 25)); |
|
24 |
newDay.GetCurrentSet().AddSerieAnimal(new SerieAnimal(1, 500, date, "")); |
|
25 |
newDay.GetCurrentSet().AddMeasure(new Mesure(date, 50, 50, 50), 1, false); |
|
26 |
JourneeViewModel.Instance.Journees.Add(newDay); |
|
27 |
//ONLY FOR TESTS |
|
28 |
|
|
19 | 29 |
this.connService = connService; |
20 | 30 |
GoToCreateDayCommand = new Command(async () => await GoToCreateDayPage()); |
21 | 31 |
} |
Formats disponibles : Unified diff