public AdultViewModel(Adult adulty, LogIn_AdministratorViewModel logIn_AdministratorViewModel) { adult = adulty; addAdultCMD = new AddAdultCommnd(this); adultM = new AdultModel(); cities = adultM.GetCities(); streetsGroupedByCity = adultM.GetstreetsGroupedByCity(); this.LogIn_AdministratorViewModel = logIn_AdministratorViewModel; }
public AdultViewModel(Adult adulty) { adult = adulty; adult.Address = adulty.Address; addAdultCMD = new AddAdultCommnd(this); adultM = new AdultModel(); cities = adultM.GetCities(); streetsGroupedByCity = adultM.GetstreetsGroupedByCity(); }
//Constructors public AdultViewModel() { adult = new Adult() { Address = new Address() }; addAdultCMD = new AddAdultCommnd(this); adultM = new AdultModel(); cities = adultM.GetCities(); streetsGroupedByCity = adultM.GetstreetsGroupedByCity(); }