public DeliveryManViewModel(DeliveryMan MydeliveryMan) { deliveryMan = MydeliveryMan; addDeliveryManCMD = new AddDeliveryManCommand(this); deliveryMan_M = new DeliveryManModel(); cities = deliveryMan_M.GetCities(); streetsGroupedByCity = deliveryMan_M.GetstreetsGroupedByCity(); }
public DeliveryManViewModel(DeliveryMan MydeliveryMan, LogIn_AdministratorViewModel logIn_AdministratorViewModel) { deliveryMan = MydeliveryMan; addDeliveryManCMD = new AddDeliveryManCommand(this); deliveryMan_M = new DeliveryManModel(); cities = deliveryMan_M.GetCities(); streetsGroupedByCity = deliveryMan_M.GetstreetsGroupedByCity(); this.LogIn_AdministratorViewModel = logIn_AdministratorViewModel; }