Exemplo n.º 1
0
        public WorkOut WorkOutByDate(string s)
        {
            DateTime date = WorkOut.stringToDate(s);

            var wo = from workKvp in allWorkOuts
                     where workKvp.Date == date
                     select workKvp;

            return(wo.ToList()[0]);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Adds workout to Observable Collection
 /// </summary>
 /// <param name="work"></param>
 public void AddToCollection(WorkOut work)
 {
     allWorkOuts.Add(work);
 }