Esempio n. 1
0
		void OnWorkoutSelected (Workout workout)
		{
			var workoutDetail = new WorkoutDetailController(View.Bounds);
			workoutDetail.BindTo(workout);

			NavigationController.PushViewController(workoutDetail, true);
		}
		public void BindTo(Workout model)
		{
			if (model == null) 
				return;

			TitleLabel.Text = model.Title;
			Title = model.Title;

			Sets.Text = model.Sets;
			Calls.Text = model.Calls;
			Exercises.Text = model.Exercises;
			Duration.Text = model.Duration;

			Icon.Image = UIImage.FromFile (model.IconFile);
		}