mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Code style fixes.
This commit is contained in:
@@ -32,14 +32,15 @@
|
||||
|
||||
using Aaru.CommonTypes.Interfaces;
|
||||
using Aaru.Helpers;
|
||||
using JetBrains.Annotations;
|
||||
using ReactiveUI;
|
||||
|
||||
namespace Aaru.Gui.ViewModels.Windows
|
||||
{
|
||||
public class ViewSectorViewModel : ViewModelBase
|
||||
public sealed class ViewSectorViewModel : ViewModelBase
|
||||
{
|
||||
const int HEX_COLUMNS = 32;
|
||||
readonly IMediaImage inputFormat;
|
||||
readonly IMediaImage _inputFormat;
|
||||
bool _longSectorChecked;
|
||||
bool _longSectorVisible;
|
||||
string _printHexText;
|
||||
@@ -47,9 +48,9 @@ namespace Aaru.Gui.ViewModels.Windows
|
||||
string _title;
|
||||
string _totalSectorsText;
|
||||
|
||||
public ViewSectorViewModel(IMediaImage inputFormat)
|
||||
public ViewSectorViewModel([NotNull] IMediaImage inputFormat)
|
||||
{
|
||||
this.inputFormat = inputFormat;
|
||||
_inputFormat = inputFormat;
|
||||
|
||||
try
|
||||
{
|
||||
@@ -80,7 +81,7 @@ namespace Aaru.Gui.ViewModels.Windows
|
||||
|
||||
PrintHexText =
|
||||
PrintHex.
|
||||
ByteArrayToHexArrayString(LongSectorChecked ? inputFormat.ReadSectorLong((ulong)SectorNumber) : inputFormat.ReadSector((ulong)SectorNumber),
|
||||
ByteArrayToHexArrayString(LongSectorChecked ? _inputFormat.ReadSectorLong((ulong)SectorNumber) : _inputFormat.ReadSector((ulong)SectorNumber),
|
||||
HEX_COLUMNS);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user