Ejemplo n.º 1
0
        private void Refresh()
        {
            string connectionString = Connection;

            var workoutsFromTable = TableOperations.GetWorkouts(connectionString);

            var workouts = new List <Workout>();

            foreach (var wo in workoutsFromTable)
            {
                workouts.Add(new Workout
                {
                    WorkoutId = wo.RowKey,
                    Name      = wo.Name,
                    Image     = wo.Image
                });
            }

            Workouts = workouts;
        }