コード例 #1
0
        public TrackInputWindow(IRailwayServiceProxyCreationFacade facade, User principal, ILogging logger, Track track)
        {
            ITrackService       trackService = facade.GetTrackServiceProxy(principal.UserName, principal.Password);
            TrackInputViewModel viewModel    = new TrackInputViewModel(track, trackService, logger, this);

            DataContext = viewModel;
            InitializeComponent();
        }
コード例 #2
0
        public StationInputWindow(User principal, IRailwayServiceProxyCreationFacade facade, Station predicate, ILogging logger)
        {
            IPlaceService         placeService   = facade.GetPlaceServiceProxy(principal.UserName, principal.Password);
            ITrackService         trackService   = facade.GetTrackServiceProxy(principal.UserName, principal.Password);
            IStationService       stationService = facade.GetStationServiceProxy(principal.UserName, principal.Password);
            StationInputViewModel viewModel      = new StationInputViewModel(predicate, stationService, trackService, placeService, logger, this);

            DataContext = viewModel;
            InitializeComponent();
        }