private void Controller_LoadFinished(BeatmapContext arg1, CancellationToken arg2) { Execute.OnUiThread(() => { /* Set Lyric */ SetLyricSynchronously(); }); }
private async void Controller_LoadStarted(BeatmapContext beatmapCtx, CancellationToken ct) { _beatmapCtx = beatmapCtx; await CloseVideoAsync(); Execute.OnUiThread(() => { BackImage.Opacity = 1; BlendBorder.Visibility = Visibility.Collapsed; }); AppSettings.Default.Play.PropertyChanged -= Play_PropertyChanged; }
private async void Controller_VideoLoadRequested(BeatmapContext beatmapCtx, CancellationToken ct) { if (VideoElement == null) { return; } if (!SharedVm.Default.EnableVideo) { return; } await InitVideoAsync(beatmapCtx); }
private void Controller_InterfaceClearRequest() { _beatmapCtx = null; }
private void Controller_LoadError(BeatmapContext arg1, Exception arg2) { _beatmapCtx = null; }
private void Controller_BackgroundInfoLoaded(BeatmapContext beatmapCtx, CancellationToken ct) { BackImage.Source = beatmapCtx.BeatmapDetail.BackgroundPath == null ? null : new BitmapImage(new Uri(beatmapCtx.BeatmapDetail.BackgroundPath)); }
private void Controller_LoadFinished(BeatmapContext bc, System.Threading.CancellationToken arg2) { Offset.Value = bc.BeatmapConfig.Offset ?? 0; }
public BeatmapInfoWindow(BeatmapContext info) { InitializeComponent(); DataContext = info; _info = info; }