Beispiel #1
0
 public AddCarNumber(UserManagerViewModel userManagerViewModel, ICarNumbersAppService carNumbersAppService)
 {
     InitializeComponent();
     _userManagerViewModel = userManagerViewModel;
     carNumbersListDto     = new CarNumbersListDto();
     _carNumbersAppService = carNumbersAppService;
     if (_userManagerViewModel.SelectDto != null)
     {
         carNumbersListDto.Phone   = _userManagerViewModel.SelectDto.Phone;
         carNumbersListDto.Contact = _userManagerViewModel.SelectDto.Contact;
         carNumbersListDto.Remark  = _userManagerViewModel.SelectDto.Remark;
     }
 }
Beispiel #2
0
 public UserManager(MainWindowViewModel mainWindowViewModel,
                    ICarUsersAppService carUsersAppService,
                    IParkAreasAppService parkAreasAppService,
                    ICarUserGroupAppService carUserGroupAppService,
                    ICarNumbersAppService carNumbersAppService,
                    ICarPortAppService carPortAppService
                    )
 {
     InitializeComponent();
     _mainWindowViewModel    = mainWindowViewModel;
     _carUsersAppService     = carUsersAppService;
     _parkAreasAppService    = parkAreasAppService;
     _carUserGroupAppService = carUserGroupAppService;
     _carNumbersAppService   = carNumbersAppService;
     _carPortAppService      = carPortAppService;
     _managerViewModel       = new UserManagerViewModel();
     DataContext             = _managerViewModel;
 }