Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GamesWindowFactory"/> class.
 /// </summary>
 /// <param name="gamesWindowViewModel">The <see cref="IGamesWindowViewModel"/> object to be injected into
 /// the created <see cref="GamesWindow"/> object.</param>
 public GamesWindowFactory(IGamesWindowViewModel gamesWindowViewModel)
 {
     _gamesWindowViewModel = gamesWindowViewModel;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="GamesWindow"/> class.
        /// </summary>
        /// <param name="viewModel">The <see cref="IGamesWindowViewModel"/> that will serve as the data context for
        /// instances of this class.</param>
        public GamesWindow(IGamesWindowViewModel viewModel)
        {
            InitializeComponent();

            DataContext = viewModel;
        }