mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[Refactor] Use collection expressions.
This commit is contained in:
@@ -90,12 +90,12 @@ public sealed class StatisticsViewModel : ViewModelBase
|
||||
public StatisticsViewModel(StatisticsDialog view)
|
||||
{
|
||||
_view = view;
|
||||
Filters = new ObservableCollection<NameCountModel>();
|
||||
Formats = new ObservableCollection<NameCountModel>();
|
||||
Partitions = new ObservableCollection<NameCountModel>();
|
||||
Filesystems = new ObservableCollection<NameCountModel>();
|
||||
Devices = new ObservableCollection<DeviceStatsModel>();
|
||||
Medias = new ObservableCollection<MediaStatsModel>();
|
||||
Filters = [];
|
||||
Formats = [];
|
||||
Partitions = [];
|
||||
Filesystems = [];
|
||||
Devices = [];
|
||||
Medias = [];
|
||||
CloseCommand = ReactiveCommand.Create(ExecuteCloseCommand);
|
||||
using var ctx = AaruContext.Create(Settings.Settings.LocalDbPath);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user