From edae3a7a58db29f5cf57e58bfecd6c5d6234b398 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 6 Jun 2021 21:42:14 -0700 Subject: [PATCH] Separate out PlayerViewModel (nw) --- RedBookPlayer/PlayerViewModel.cs | 49 ++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 RedBookPlayer/PlayerViewModel.cs diff --git a/RedBookPlayer/PlayerViewModel.cs b/RedBookPlayer/PlayerViewModel.cs new file mode 100644 index 0000000..a44dcc4 --- /dev/null +++ b/RedBookPlayer/PlayerViewModel.cs @@ -0,0 +1,49 @@ +using ReactiveUI; + +namespace RedBookPlayer +{ + public class PlayerViewModel : ReactiveObject + { + private bool _applyDeEmphasis; + public bool ApplyDeEmphasis + { + get => _applyDeEmphasis; + set => this.RaiseAndSetIfChanged(ref _applyDeEmphasis, value); + } + + private bool _trackHasEmphasis; + public bool TrackHasEmphasis + { + get => _trackHasEmphasis; + set => this.RaiseAndSetIfChanged(ref _trackHasEmphasis, value); + } + + private bool _hiddenTrack; + public bool HiddenTrack + { + get => _hiddenTrack; + set => this.RaiseAndSetIfChanged(ref _hiddenTrack, value); + } + + private bool _copyAllowed; + public bool CopyAllowed + { + get => _copyAllowed; + set => this.RaiseAndSetIfChanged(ref _copyAllowed, value); + } + + private bool _isAudioTrack; + public bool IsAudioTrack + { + get => _isAudioTrack; + set => this.RaiseAndSetIfChanged(ref _isAudioTrack, value); + } + + private bool _isDataTrack; + public bool IsDataTrack + { + get => _isDataTrack; + set => this.RaiseAndSetIfChanged(ref _isDataTrack, value); + } + } +} \ No newline at end of file