Disconnect some more UI -> Model

This commit is contained in:
Matt Nadareski
2021-07-03 15:00:51 -07:00
parent c2b063301a
commit 83fc88ff6a
4 changed files with 55 additions and 62 deletions

View File

@@ -6,13 +6,31 @@ namespace RedBookPlayer.GUI
{
#region Player Status
private bool _playing;
public bool Playing
private bool? _playing;
public bool? Playing
{
get => _playing;
set => this.RaiseAndSetIfChanged(ref _playing, value);
}
private int _volume;
public int Volume
{
get => _volume;
set => this.RaiseAndSetIfChanged(ref _volume, value);
}
private bool _applyDeEmphasis;
public bool ApplyDeEmphasis
{
get => _applyDeEmphasis;
set => this.RaiseAndSetIfChanged(ref _applyDeEmphasis, value);
}
#endregion
#region Model-Provided Playback Information
private ulong _currentSector;
public ulong CurrentSector
{
@@ -35,20 +53,6 @@ namespace RedBookPlayer.GUI
public int TotalSeconds => (int)(_totalSectors / 75 % 60);
public int TotalMinutes => (int)(_totalSectors % 75);
private int _volume;
public int Volume
{
get => _volume;
set => this.RaiseAndSetIfChanged(ref _volume, value);
}
private bool _applyDeEmphasis;
public bool ApplyDeEmphasis
{
get => _applyDeEmphasis;
set => this.RaiseAndSetIfChanged(ref _applyDeEmphasis, value);
}
#endregion
#region Disc Flags