Пример #1
0
		public LocalGame(DominionAppContext context)
		{
			this.Context = context;
			LocalGamePageModel gamePageModel = new LocalGamePageModel();
			this.GamePageModel = gamePageModel;
			gamePageModel.Difficulty = this.Context.Difficulty.GetDifficulty();
		}
Пример #2
0
		public RemoteGame(DominionAppContext context)
		{
			this.Context = context;
			this.GamePageModel = new RemoteGamePageModel();
		}
Пример #3
0
        /// <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;
		}