public LocalGame(DominionAppContext context) { this.Context = context; LocalGamePageModel gamePageModel = new LocalGamePageModel(); this.GamePageModel = gamePageModel; gamePageModel.Difficulty = this.Context.Difficulty.GetDifficulty(); }
public RemoteGame(DominionAppContext context) { this.Context = context; this.GamePageModel = new RemoteGamePageModel(); }
/// <summary> /// Initializes the singleton application object. This is the first line of authored code /// executed, and as such is the logical equivalent of main() or WinMain(). /// </summary> public App() { this.InitializeComponent(); App.Context = new DominionAppContext(); this.Suspending += OnSuspending; }