void OnUploadDemoBlocksButtonClick(Control sender, ref RoutedEventContext context) { var boxIntegration = (Screen.Game as BlockViewerGame).BoxIntegration; // 保存されている設定からの BoxSession の復元を試みます。 viewModel.RestoreSessionAsync(RestoreSessionCallback); ShowProgressDialog(Strings.CheckingBoxSettingsMessage); }