You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

59 lines
1.4 KiB

using MyAvaloniaApp.ViewModels.Base;
using ReactiveUI;
namespace MyAvaloniaApp.ViewModels.Pages;
/// <summary>
/// 报表统计页面ViewModel
/// </summary>
public class ReportsPageViewModel : RoutableViewModel
{
private string _welcomeMessage = "欢迎使用报表统计功能!";
private int _totalReports = 156;
private int _monthlyReports = 23;
private double _averageScore = 87.5;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="hostScreen">宿主 Screen</param>
public ReportsPageViewModel(IScreen hostScreen) : base(hostScreen, "Reports")
{
}
/// <summary>
/// 欢迎消息
/// </summary>
public string WelcomeMessage
{
get => _welcomeMessage;
set => this.RaiseAndSetIfChanged(ref _welcomeMessage, value);
}
/// <summary>
/// 总报表数
/// </summary>
public int TotalReports
{
get => _totalReports;
set => this.RaiseAndSetIfChanged(ref _totalReports, value);
}
/// <summary>
/// 月度报表数
/// </summary>
public int MonthlyReports
{
get => _monthlyReports;
set => this.RaiseAndSetIfChanged(ref _monthlyReports, value);
}
/// <summary>
/// 平均评分
/// </summary>
public double AverageScore
{
get => _averageScore;
set => this.RaiseAndSetIfChanged(ref _averageScore, value);
}
}