Wpf/SpeedTest/SpeedTestVm.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.ComponentModel;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using LiveCharts.Geared;
namespace Geared.Wpf.SpeedTest
{
public class SpeedTestVm : INotifyPropertyChanged
{
private double _trend;
private double _count;
private double _currentLecture;
private bool _isHot;
public SpeedTestVm()
{
Values = new GearedValues<double>().WithQuality(Quality.Highest);
ReadCommand = new RelayCommand(Read);
StopCommand = new RelayCommand(Stop);
CleaCommand = new RelayCommand(Clear);
}
public bool IsReading { get; set; }
public RelayCommand ReadCommand { get; set; }
public RelayCommand StopCommand { get; set; }
public RelayCommand CleaCommand { get; set; }
public GearedValues<double> Values { get; set; }
public double Count
{
get { return _count; }
set
{
_count = value;
OnPropertyChanged("Count");
}
}
public double CurrentLecture
{
get { return _currentLecture; }
set
{
_currentLecture = value;
OnPropertyChanged("CurrentLecture");
}
}
public bool IsHot
{
get { return _isHot; }
set
{
var changed = value != _isHot;
_isHot = value;
if (changed) OnPropertyChanged("IsHot");
}
}
后面还有 61 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
