public BackList(MainWindowViewModel mainWindowViewModel, IParkEntrancesAppService parkEntrancesAppService, ICarTypesAppService carTypesAppService, IParkAreasAppService parkAreasAppService) { InitializeComponent(); _mainWindowViewModel = mainWindowViewModel; _parkEntrancesAppService = parkEntrancesAppService; _carTypesAppService = carTypesAppService; _entranceViewModel = new ParkEntranceViewModel(); _parkAreasAppService = parkAreasAppService; this.DataContext = _entranceViewModel; }
/// <summary> /// 构造函数 ///</summary> public CarPortAppService( IRepository <CarPort, long> carportRepository , ICarPortManager carportManager, ICarTypesAppService carTypesAppService, IRepository <ParkAreas, long> parkAreaRepository ) { _carportRepository = carportRepository; _carportManager = carportManager; _carTypesAppService = carTypesAppService; _parkAreaRepository = parkAreaRepository; }