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(); }
public BoxSetupViewModel(Game game) { if (game == null) throw new ArgumentNullException("game"); asyncTaskService = game.Services.GetRequiredService<IAsyncTaskService>(); boxIntegration = (game as BlockViewerGame).BoxIntegration; getTicketAsync = (state) => boxIntegration.GetTicket(); getAuthTokenAsync = (state) => boxIntegration.GetAuthToken(); prepareFolderTreeAsync = (state) => boxIntegration.PrepareFolderTree(); saveSettingsAsync = (state) => boxIntegration.SaveSettings(); }
public BoxSetupViewModel(Game game) { if (game == null) { throw new ArgumentNullException("game"); } asyncTaskService = game.Services.GetRequiredService <IAsyncTaskService>(); boxIntegration = (game as BlockViewerGame).BoxIntegration; getTicketAsync = (state) => boxIntegration.GetTicket(); getAuthTokenAsync = (state) => boxIntegration.GetAuthToken(); prepareFolderTreeAsync = (state) => boxIntegration.PrepareFolderTree(); saveSettingsAsync = (state) => boxIntegration.SaveSettings(); }
public ModalDialogService(IServiceProvider serviceProvider, IAsyncTaskService asyncTaskService) { _serviceProvider = serviceProvider; _asyncTaskService = asyncTaskService; }