public void Show() { if (SetWindow()) { _window.Show(); } }
internal async void NewPreView() { #warning 这里的代码还没有完成 //if (Preview == 300) //{ // GenericResult<PreviewImageInformation> x = await Task.Run(() => // { // return fileSystem.ImagePreview(UUID); // }); // PreView preView = new PreView(PreView.ResourceType.Picture, x.Result.Url, x.Result,x.Token); // preView.Show(); //} if (PreviewType == 3010) { GenericResult <PreviewVideoInformation> x = await Task.Run(() => { return(fileSystem.VideoPreview(UUID)); }); if (x.Success) { PreView preView = new PreView(PreView.ResourceType.Video, x.Result.PreviewHlsAddress, x.Result); preView.Show(); } } }