Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 构造函数
 ///</summary>
 public CarPortAppService(
     IRepository <CarPort, long>
     carportRepository
     , ICarPortManager carportManager,
     ICarTypesAppService carTypesAppService,
     IRepository <ParkAreas, long> parkAreaRepository
     )
 {
     _carportRepository  = carportRepository;
     _carportManager     = carportManager;
     _carTypesAppService = carTypesAppService;
     _parkAreaRepository = parkAreaRepository;
 }