General code clean-up, refactor and commenting.

This commit is contained in:
2020-11-11 04:19:18 +00:00
parent 5f07692d31
commit 6877589cc9
343 changed files with 3661 additions and 3628 deletions

View File

@@ -594,9 +594,8 @@ namespace Aaru.Gui.ViewModels.Windows
Name = scheme
};
foreach(CommonTypes.Partition partition in partitions.
Where(p => p.Scheme == scheme).
OrderBy(p => p.Start))
foreach(CommonTypes.Partition partition in partitions.Where(p => p.Scheme == scheme).
OrderBy(p => p.Start))
{
var partitionModel = new PartitionModel
{
@@ -771,9 +770,8 @@ namespace Aaru.Gui.ViewModels.Windows
AaruConsole.WriteLine("Refreshing devices");
_devicesRoot.Devices.Clear();
foreach(Devices.DeviceInfo device in Device.
ListDevices().Where(d => d.Supported).OrderBy(d => d.Vendor).
ThenBy(d => d.Model))
foreach(Devices.DeviceInfo device in Device.ListDevices().Where(d => d.Supported).
OrderBy(d => d.Vendor).ThenBy(d => d.Model))
{
AaruConsole.DebugWriteLine("Main window",
"Found supported device model {0} by manufacturer {1} on bus {2} and path {3}",