Exemplo n.º 1
0
 public AccountViewModel(DashboardVM dashboardViewModel)
 {
     SignIn      = new SignInCommand(this);
     User        = new AccountModel("", "");
     DashboardVM = dashboardViewModel;
     Register    = new RegisterCommand(this);
 }
 public SelectOptionViewModel(DashboardVM dashboardVM, User aCurrentUser)
 {
     Goals       = new GoalsCommand(this);
     Daily       = new DailyCommand(this);
     FoodInfo    = new FoodInformationCommand(this);
     Evaluation  = new EvaluationCommand(this);
     DashboardVM = dashboardVM;
     currentUser = aCurrentUser;
 }
 public FoodInformationViewModel(DashboardVM aDashboardVM)
 {
     Calculator        = new NutritionalValuesCalculatorCommand(this);
     SweetsInfo        = new SweetsInfoCommand(this);
     SaltyInfo         = new SaltyInfoCommand(this);
     MeatInfo          = new MeatInfoCommand(this);
     DairyInfo         = new DairyInfoCommand(this);
     BackWindowCommand = new BackCommand(this);
     dashboardVM       = aDashboardVM;
 }
 public NewAccountViewModel(DashboardVM aDashboardVM)
 {
     DashboardVM = aDashboardVM;
     newAccount  = new NewAccountModel("", "", "", "", "", "", "");
     registerNow = new NewAccountCommand(this);
 }