/// <summary>
        /// Initializes a new instance of the <see cref="GamePredictorWindow"/> class.
        /// </summary>
        public GamePredictorWindow(IGamePredictorWindowViewModel viewModel)
        {
            InitializeComponent();

            DataContext = viewModel;
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GamePredictorWindowFactory"/> class.
 /// </summary>
 /// <param name="gamePredictorWindowViewModel">
 /// The <see cref="IGamePredictorWindowViewModel"/> object to be injected into the created
 /// <see cref="GamePredictorWindow"/> object.</param>
 public GamePredictorWindowFactory(IGamePredictorWindowViewModel gamePredictorWindowViewModel)
 {
     _gamePredictorWindowViewModel = gamePredictorWindowViewModel;
 }