예제 #1
0
        private void OnSelectMenuItem(Runner obj)

        {
            SelectedRunners.Add(obj);
            Runners.Remove(obj);
            SelectedRunnersCount++;
        }
예제 #2
0
        private void RemoveRunnerMethod(Runner obj)

        {
            SelectedRunners.Remove(obj);
            Runners.Add(obj);
            SelectedRunnersCount--;
        }
예제 #3
0
        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();
        }