public StartMenuViewModel(Game game) { this.game = game; storageBlockService = game.Services.GetRequiredService <IStorageBlockService>(); asyncTaskService = game.Services.GetRequiredService <IAsyncTaskService>(); boxIntegration = (game as BlockViewerGame).BoxIntegration; restoreSessionAction = (state) => boxIntegration.RestoreSession(); uploadDemoContentsAction = (state) => UploadDemoContents(); }
public StartMenuViewModel(Game game) { this.game = game; storageBlockService = game.Services.GetRequiredService<IStorageBlockService>(); asyncTaskService = game.Services.GetRequiredService<IAsyncTaskService>(); boxIntegration = (game as BlockViewerGame).BoxIntegration; restoreSessionAction = (state) => boxIntegration.RestoreSession(); uploadDemoContentsAction = (state) => UploadDemoContents(); }