Beispiel #1
0
 public override void ViewDidLoad()
 {
     base.ViewDidLoad();
     tableItems = WorkoutManager.GetLabelMenu();
     ReformatData();
     WorkoutMenuTable.Source = new TableSource(titles, counts, this);
 }
Beispiel #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            List <string> temp = new List <string> ();

            temp.Add(label);
            List <Tuple <string, string> > workoutData = WorkoutManager.GetLabelList(temp);

            ReformatData(workoutData);
            WorkoutListTable.Source = new TableSource(workoutTitles, workoutURLs, this);
        }
        private void GetSavedFiles()
        {
            string path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "/SavedWorkouts";

            if (Directory.Exists(path))
            {
                var directories = Directory.EnumerateFiles(path);
                foreach (var dir in directories)
                {
                    fileNames.Add(Path.GetFileName(path + "/" + dir));
                    string[] temp = fileNames.Last().Split('/');
                    titles.Add(WorkoutManager.GetTitle(temp.Last()));
                }
            }
            else
            {
                //TestLabel.Text = "You have no saved workouts.";
            }
        }
Beispiel #4
0
 private void InitializeWorkoutManager()
 {
     WorkoutManager.Initialize();
 }