Example #1
0
        private void AddRacer(object obj)
        {
            Racer newRacer = _derbyDataService.CreateRacer();

            Racers.Add(newRacer);
            Messenger.Default.Send <Racer>(newRacer);
            _dialogService.ShowRacerDetailDialog();
        }
        private void SaveAndAddRacer(object obj)
        {
            _derbyDataService.Save();

            Racer newRacer = _derbyDataService.CreateRacer();

            LoadRacer(newRacer);
            RaisePropertyChanged(string.Empty);
        }