/// <summary> /// initialise une nouvelle instance de la classe ComposeMenuViewModel /// </summary> /// <param name="ManagerVM">le manager</param> public ComposeMenuViewModel(ManagerViewModel ManagerVM, Grid myGrid) : base() { Manager = ManagerVM; gridChoices = myGrid; SelectedCategorie = 0; //Test with a choosen date DateTime mydate = new DateTime(2019, 2, 28); ScolarDaysList = SetWeekScolarDays(GetFirstDayOfWeek(DateTime.Today)); }
/// <summary> /// initialise une nouvelle instance de la classe RegisterViewModel /// </summary> /// <param name="managerVM">le ViewModel du manager</param> public RegisterViewModel(ManagerViewModel managerVM) { Manager = managerVM; RegisterCommand = new Command(RegisterExecute, CanRegister); GoBackToLoginCommand = new Command(GoBackExecute); }
/// <summary> /// initialise une nouvelle instance de la classe LoginViewModel /// </summary> /// <param name="ManagerVM">le ViewModel du manager</param> public LoginViewModel(ManagerViewModel ManagerVM) : base() { Manager = ManagerVM; LoginCommand = new Command(LoginExecute, CanLogin); DeleteAllUsersCommand = new Command(DeleteExecute); }