-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindowViewModel.cs
More file actions
35 lines (32 loc) · 2 KB
/
Copy pathMainWindowViewModel.cs
File metadata and controls
35 lines (32 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using ReactiveUI;
using System.Collections.ObjectModel;
using System.Linq;
namespace ModerBox.ViewModels {
public class MainWindowViewModel : ViewModelBase {
public ObservableCollection<ViewModelBase> Pages { get; }
private ViewModelBase _currentPage;
public ViewModelBase CurrentPage {
get => _currentPage;
set => this.RaiseAndSetIfChanged(ref _currentPage, value);
}
public MainWindowViewModel() {
Pages = new ObservableCollection<ViewModelBase> {
new HomePageViewModel { Title = "首页", Icon = "Home" },
new HarmonicCalculateViewModel { Title = "谐波计算", Icon = "Audio" },
new FilterWaveformSwitchIntervalViewModel { Title = "滤波器分合闸波形检测", Icon = "Filter" },
new FilterWaveformSwitchCopyViewModel { Title = "分合闸波形筛选复制", Icon = "Copy" },
new SwitchOperationReportViewModel { Title = "分合闸操作报表导出", Icon = "Save" },
new PeriodicWorkViewModel { Title = "内置录波定期工作", Icon = "Calendar" },
new CurrentDifferenceAnalysisViewModel { Title = "接地极电流差值分析", Icon = "Ruler" },
new NewCurrentDifferenceAnalysisViewModel { Title = "接地极电流差值分析 (新版)", Icon = "RulerFilled" },
new ThreePhaseIdeeAnalysisViewModel { Title = "三相IDEE分析", Icon = "ThreeBars" },
new QuestionBankConversionViewModel { Title = "题库转换", Icon = "Document" },
new ComtradeExportViewModel { Title = "波形通道导出", Icon = "Save" },
new CableRoutingViewModel { Title = "电缆走向绘制", Icon = "Ruler" },
new VideoAnalysisViewModel { Title = "视频分析", Icon = "Play" },
new ContributionCalculationViewModel { Title = "工作票贡献度计算", Icon = "Calculate" }
};
_currentPage = Pages.First();
}
}
}