put enum and class to separate file
ADD
WalletWasabi.Fluent/Model/TimePeriodOption.cs
+using WalletWasabi.Models;
+
+namespace WalletWasabi.Fluent.Model
+{
+ public enum TimePeriodOption
+ {
+ All,
+ [FriendlyName("1D")]
+ Day,
+ [FriendlyName("1W")]
+ Week,
+ [FriendlyName("1M")]
+ Month,
+ [FriendlyName("3M")]
+ ThreeMonths,
+ [FriendlyName("6M")]
+ SixMonths,
+ [FriendlyName("1Y")]
+ Year
+ }
+}

ADD
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/TimePeriodOptionViewModel.cs
+using System;
+using System.Windows.Input;
+using ReactiveUI;
+using WalletWasabi.Extensions;
+using WalletWasabi.Fluent.Model;
+
+namespace WalletWasabi.Fluent.ViewModels.Wallets.Home.Tiles
+{
+ public partial class TimePeriodOptionViewModel
+ {
+ public TimePeriodOption Option { get; }
+ [AutoNotify] private bool _isSelected;
+
+ public TimePeriodOptionViewModel(TimePeriodOption option, Action<TimePeriodOptionViewModel> updateAction, uint orderIndex)
+ {
+ Option = option;
+ Text = option.FriendlyName();
+ SelectCommand = ReactiveCommand.Create(() => updateAction(this));
+ OrderIndex = orderIndex;
+ }
+
+ public string Text { get; }
+
+ public uint OrderIndex { get; }
+
+ public ICommand SelectCommand { get; }
+ }
+}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/WalletBalanceChartTileViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/WalletBalanceChartTileViewModel.cs
@@ -3,54 +3,14 @@ using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Reactive.Disposables;
-using System.Windows.Input;
using DynamicData.Binding;
using NBitcoin;
-using ReactiveUI;
-using WalletWasabi.Extensions;
using WalletWasabi.Fluent.Helpers;
+using WalletWasabi.Fluent.Model;
using WalletWasabi.Fluent.ViewModels.Wallets.Home.History;
-using WalletWasabi.Models;
namespace WalletWasabi.Fluent.ViewModels.Wallets.Home.Tiles
{
- public enum TimePeriodOption
- {
- All,
- [FriendlyName("1D")]
- Day,
- [FriendlyName("1W")]
- Week,
- [FriendlyName("1M")]
- Month,
- [FriendlyName("3M")]
- ThreeMonths,
- [FriendlyName("6M")]
- SixMonths,
- [FriendlyName("1Y")]
- Year
- }
-
- public partial class TimePeriodOptionViewModel
- {
- public TimePeriodOption Option { get; }
- [AutoNotify] private bool _isSelected;
-
- public TimePeriodOptionViewModel(TimePeriodOption option, Action<TimePeriodOptionViewModel> updateAction, uint orderIndex)
- {
- Option = option;
- Text = option.FriendlyName();
- SelectCommand = ReactiveCommand.Create(() => updateAction(this));
- OrderIndex = orderIndex;
- }
-
- public string Text { get; }
-
- public uint OrderIndex { get; }
-
- public ICommand SelectCommand { get; }
- }
-
public partial class WalletBalanceChartTileViewModel : TileViewModel
{
private readonly ObservableCollection<HistoryItemViewModel> _history;

put enum and class to separate file