public RegistrationViewModel(ApplicationManager appManager)
        {
            _appManager          = appManager;
            _countriesRepository = new CountriesRepository();

            SelectedCountry = Countries.First();
            SelectedSex     = Sexes.First();
            SelectedAge     = Ages.First();
        }
Example #2
0
 public HybrasylAge GetAgeFromTerranDatetime(DateTime datetime)
 {
     if (Ages.Count == 0)
     {
         return(DefaultAge);
     }
     else if (Ages.Count == 1)
     {
         return(Ages.First());
     }
     else
     {
         return(Ages.First(a => a.DateInAge(datetime)));
     }
 }