public PlayersPage(WindowModelView mainWindowModelView) { this.InitializeComponent(); this.PlayerFullListModelView = new PlayerFullListModelView(); this.PlayerFullListModelView.DataChanged += mainWindowModelView.WasModified; this.DataContext = this.PlayerFullListModelView; }
public MainWindow() { this.InitializeComponent(); this.MainWindowModelView = new WindowModelView(); this.DataContext = this.MainWindowModelView; this.playerPage = new PlayersPage(this.MainWindowModelView); this.playerPage.PlayerFullListModelView.NewGameRequest += this.NewGameWindow; this.MainFrame.Content = this.playerPage; }