public SessionDefinitionView(ISessionDefinitionViewModel sessionDefinition, IWorkoutDefinitionLibraryViewModel workOutDefinitionLibraryViewModel, IUserInterfaceState userInterfaceState)
 {
     InitializeComponent();
     _sessionDefintion = sessionDefinition;
     _workOutDefinitionLibraryViewModel = workOutDefinitionLibraryViewModel;
     _userInterfaceState = userInterfaceState;
 }
 public AddWorkoutDefinitionViewModel(IWorkOutDefinitionRepository workOutDefinitionRepository, IWorkoutDefinitionLibraryViewModel workoutDefinitionLibraryViewModel, IUserInterfaceState userInterfaceState)
 {
     _workOutDefinitionRepository       = workOutDefinitionRepository;
     _workoutDefinitionLibraryViewModel = workoutDefinitionLibraryViewModel;
     _userInterfaceState           = userInterfaceState;
     NewWorkoutDefinitionViewModel = App.Container.Resolve <IWorkoutDefinitionViewModel>();
     AddWorkoutDefinition          = new RelayCommand(AddWorkoutDefinitionExecute);
 }
        public AssignWorkoutDefinitionViewModel(IWorkOutAssignmentRepository workOutAssignmentRepository, IScheduleViewModel scheduleViewModel, IWorkoutDefinitionLibraryViewModel workoutDefinitionLibraryViewModel, IUserInterfaceState userInterfaceState)
        {
            SelectedSessionDefinition          = scheduleViewModel.SelectedSessionDefinition;
            _workoutDefinitionLibraryViewModel = workoutDefinitionLibraryViewModel;
            _workOutAssignmentRepository       = workOutAssignmentRepository;
            _userInterfaceState = userInterfaceState;

            AssignWorkoutDefinition = new RelayCommand(AssignWorkoutDefinitionExecute);
        }
Esempio n. 4
0
 public ScheduleView(IScheduleViewModel scheduleViewModel, IWorkoutDefinitionLibraryViewModel workoutDefinition)
 {
     InitializeComponent();
     _scheduleViewModel = scheduleViewModel;
 }
Esempio n. 5
0
 public WorkOutDefinitionLibraryView(IWorkoutDefinitionLibraryViewModel workOutDefinitionOverViewViewModel)
 {
     InitializeComponent();
     _workOutDefinitionOverViewViewModel = workOutDefinitionOverViewViewModel;
 }