public async Task LaunchOnSystem(RemoteSystem system) { BrowserPageViewModel browserVM = SimpleIoc.Default.GetInstance <BrowserPageViewModel>(); string collectionJson = "{}"; if (browserVM.Images is IJsonizable) { collectionJson = (browserVM.Images as IJsonizable).toJson(); } ValueSet values = new ValueSet(); values["images"] = collectionJson; values["index"] = browserVM.FlipViewIndex; RemoteLauncherOptions option = new RemoteLauncherOptions(); option.FallbackUri = new Uri("https://www.microsoft.com/store/p/monocle-giraffe/9nblggh4qcvh"); RemoteLaunchUriStatus launchUriStatus = await RemoteLauncher.LaunchUriAsync(new RemoteSystemConnectionRequest(system), new Uri($"imgur:?images={collectionJson}&index={browserVM.FlipViewIndex}&type={browserVM.Images.GetType().Name}")); }
public async Task LaunchOnSystem(RemoteSystem system) { BrowserPageViewModel browserVM = SimpleIoc.Default.GetInstance<BrowserPageViewModel>(); string collectionJson = "{}"; if (browserVM.Images is IJsonizable) collectionJson = (browserVM.Images as IJsonizable).toJson(); ValueSet values = new ValueSet(); values["images"] = collectionJson; values["index"] = browserVM.FlipViewIndex; RemoteLauncherOptions option = new RemoteLauncherOptions(); option.FallbackUri = new Uri("https://www.microsoft.com/store/p/monocle-giraffe/9nblggh4qcvh"); RemoteLaunchUriStatus launchUriStatus = await RemoteLauncher.LaunchUriAsync(new RemoteSystemConnectionRequest(system), new Uri($"imgur:?images={collectionJson}&index={browserVM.FlipViewIndex}&type={browserVM.Images.GetType().Name}")); }