Example #1
0
        public PlaceInputWindow(IRailwayServiceProxyCreationFacade facade, User principal, ILogging logger, Place place)
        {
            IPlaceService       placeService   = facade.GetPlaceServiceProxy(principal.UserName, principal.Password);
            ICountryService     countryService = facade.GetCountryServiceProxy(principal.UserName, principal.Password);
            PlaceInputViewModel viewModel      = new PlaceInputViewModel(place, placeService, countryService, logger, this);

            DataContext = viewModel;
            InitializeComponent();
        }