diff --git a/RedBookPlayer.Common/Discs/OpticalDisc.cs b/RedBookPlayer.Common/Discs/OpticalDisc.cs index 0cb5fb3..555c630 100644 --- a/RedBookPlayer.Common/Discs/OpticalDisc.cs +++ b/RedBookPlayer.Common/Discs/OpticalDisc.cs @@ -26,6 +26,7 @@ namespace RedBookPlayer.Common.Discs /// /// Current sector number /// + /// TODO: Maske this `protected set` public abstract ulong CurrentSector { get; set; } /// diff --git a/RedBookPlayer.Common/Hardware/Player.cs b/RedBookPlayer.Common/Hardware/Player.cs index 0ae2563..03acf26 100644 --- a/RedBookPlayer.Common/Hardware/Player.cs +++ b/RedBookPlayer.Common/Hardware/Player.cs @@ -160,7 +160,7 @@ namespace RedBookPlayer.Common.Hardware public int Volume { get => _volume; - set => this.RaiseAndSetIfChanged(ref _volume, value); + private set => this.RaiseAndSetIfChanged(ref _volume, value); } private bool? _playing; diff --git a/RedBookPlayer.Common/Hardware/SoundOutput.cs b/RedBookPlayer.Common/Hardware/SoundOutput.cs index 77104b3..cdb0def 100644 --- a/RedBookPlayer.Common/Hardware/SoundOutput.cs +++ b/RedBookPlayer.Common/Hardware/SoundOutput.cs @@ -42,7 +42,7 @@ namespace RedBookPlayer.Common.Hardware public int Volume { get => _volume; - set + private set { int tempVolume = value; if(value > 100) diff --git a/RedBookPlayer.Common/PlayerViewModel.cs b/RedBookPlayer.Common/PlayerViewModel.cs index 8e4cf5b..635b4a4 100644 --- a/RedBookPlayer.Common/PlayerViewModel.cs +++ b/RedBookPlayer.Common/PlayerViewModel.cs @@ -53,7 +53,7 @@ namespace RedBookPlayer.Common public ulong SectionStartSector { get => _sectionStartSector; - protected set => this.RaiseAndSetIfChanged(ref _sectionStartSector, value); + private set => this.RaiseAndSetIfChanged(ref _sectionStartSector, value); } ///