Esempio n. 1
0
 public ManageWorkoutGroupViewModel(WorkoutGroupsPageViewModel parent, WorkoutGroup workoutGroupToManage)
 {
     _parent = parent;
     _workoutGroupToManage = workoutGroupToManage;
     _applicationUser      = parent.Parent.User;
     WorkoutGroupName      = workoutGroupToManage.WorkoutGroupName;
     Competitors           = InitializeCompetitors();
     NavigateToInviteFriendPopupViewCommand   = new Command(async() => await NavigateToInviteFriendPopupView());
     KickFriendFromWorkoutGroupCommand        = new Command(KickFriendFromWorkoutGroup);
     PromoteFriendToWorkoutGroupLeaderCommand = new Command(PromoteFriendToWorkoutGroupLeader);
     DeleteWorkoutGroupCommand = new Command(DeleteWorkoutGroup);
 }
 public CreateWorkoutGroupsPageViewModel(WorkoutGroupsPageViewModel parent)
 {
     _parent = parent;
     InitializeFriends();
     CreateWorkoutGroupCommand = new Command(CreateWorkoutGroup);
 }