Пример #1
0
 public CarportInfo(ICarPortAppService carPortAppService, MainWindowViewModel mainWindowViewModel, UserManagerViewModel userManagerViewModel, CarPortListDto carPortListDto)
 {
     InitializeComponent();
     _carPortListDto                 = carPortListDto;
     _carPortAppService              = carPortAppService;
     _mainWindowViewModel            = mainWindowViewModel;
     _userManagerViewModel           = userManagerViewModel;
     _carPortTimeExTenstionViewModel = new CarPortTimeExTenstionViewModel();
 }
Пример #2
0
 public CarPortTimeExtension(ICarPortAppService carPortAppService, MainWindowViewModel mainWindowViewModel, UserManagerViewModel userManagerViewModel, CarPortListDto carPortListDto)
 {
     InitializeComponent();
     _carPortAppService              = carPortAppService;
     _mainWindowViewModel            = mainWindowViewModel;
     _userManagerViewModel           = userManagerViewModel;
     _carPortTimeExTenstionViewModel = new CarPortTimeExTenstionViewModel();
     _carPortTimeExTenstionViewModel.CarPortListDto = carPortListDto;
     DataContext = _carPortTimeExTenstionViewModel;
     _rechargeRecordAppService = IocManager.Resolve <IRechargeRecordAppService>();
 }