private void OnSelectMenuItem(Runner obj) { SelectedRunners.Add(obj); Runners.Remove(obj); SelectedRunnersCount++; }
private void RemoveRunnerMethod(Runner obj) { SelectedRunners.Remove(obj); Runners.Add(obj); SelectedRunnersCount--; }
public void OnNavigatedTo(INavigationParameters parameters) { IsBusy = true; if (parameters["Event"] != null) { NewEvent = (Event)parameters["Event"]; SelectedRunners = (List <Runner>)parameters["SelectedRunners"]; StoredTimes = new ObservableCollection <Time>((List <Time>)parameters["StoredTimes"]); ModifyTimes(NewEvent.Id); IsBusy = false; ShowNumeric = !NewEvent.IsRace; ShowPopUp = NewEvent.IsRace; } ShowRunnersCount = SelectedRunners.Count(); }