public MainWindow() { InitializeComponent(); this.context = new DataModel(); context.selectedGame = "Skyrim"; this.DataContext = this.context; }
public UserControlHome() { InitializeComponent(); this.context = new DataModel(); this.sample_entries(); this.DataContext = this.context; }