Example #1
0
        public RoadInputWindow(User user, IRailwayServiceProxyCreationFacade facade, Road predicate, ILogging logger, IPrimaryEntityCommandManagement manager)
        {
            IRoadService       roadService    = facade.GetRoadServiceProxy(user.UserName, user.Password);
            IStationService    stationService = facade.GetStationServiceProxy(user.UserName, user.Password);
            RoadInputViewModel viewModel      = new RoadInputViewModel(roadService, stationService, predicate, logger, this, manager);

            DataContext = viewModel;
            InitializeComponent();
        }