Пример #1
0
 /// <summary>
 /// on `Clear race` btn click,
 /// resets all rece properties,
 /// clears list of horses for the race
 /// </summary>
 /// <param name="obj"></param>
 public void OnClearDataExecute(object obj)
 {
     HorseList.Clear();
     Category = "fill up";
     City     = "-";
     Distance = "0";
     RaceNo   = "0";
     RaceDate = DateTimeNow;
 }
Пример #2
0
 /// <summary>
 /// on `Add new horse (+)` btn click,
 /// is adding new blank horse to the list
 /// </summary>
 /// <param name="obj"></param>
 public void OnNewHorseExecute(object obj)
 {
     HorseWrapper = new HorseDataWrapper();
     HorseList.Add(HorseWrapper);
 }