コード例 #1
0
        public AddUserWindow(User principal, IRailwayServiceProxyCreationFacade connector, ILogging logger)
        {
            IUserService     userService = connector.GetUserServiceProxy(principal.UserName, principal.Password);
            AddUserViewModel viewModel   = new AddUserViewModel(userService, logger, principal, new User(), this);

            DataContext = viewModel;
            InitializeComponent();
        }