StatsPanel.xaml.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace GrandPrix
{
/// <summary>
/// Interaction logic for StatsPanel.xaml
/// </summary>
public partial class StatsPanel : UserControl
{
#region attributes
public static DependencyProperty TimeProperty;
public static DependencyProperty PositionProperty;
public static DependencyProperty SpeedProperty;
public static DependencyProperty LeaderProperty;
public static DependencyProperty LapsProperty;
public static DependencyProperty LapsToGoProperty;
#endregion attributes
#region ctor
public StatsPanel()
{
InitializeComponent();
TimeProperty = DependencyProperty.Register("Time", typeof(DateTime), typeof(StatsPanel), new PropertyMetadata(new PropertyChangedCallback(TimeChanged)));
PositionProperty = DependencyProperty.Register("Position", typeof(int), typeof(StatsPanel), new PropertyMetadata(new PropertyChangedCallback(PositionChanged)));
SpeedProperty = DependencyProperty.Register("Speed", typeof(double), typeof(StatsPanel), new PropertyMetadata(new PropertyChangedCallback(SpeedChanged)));
LeaderProperty = DependencyProperty.Register("Leader", typeof(string), typeof(StatsPanel), new PropertyMetadata(new PropertyChangedCallback(LeaderChanged)));
LapsProperty = DependencyProperty.Register("Laps", typeof(int), typeof(StatsPanel), new PropertyMetadata(new PropertyChangedCallback(LapsChanged)));
LapsToGoProperty = DependencyProperty.Register("LapsToGo", typeof(int), typeof(StatsPanel), new PropertyMetadata(new PropertyChangedCallback(LapsToGoChanged)));
}
#endregion ctor
#region properties
public DateTime Time
{
get { return (DateTime)GetValue(TimeProperty); }
set { SetValue(TimeProperty, value); }
}
public int Position
{
get { return (int)GetValue(PositionProperty); }
set { SetValue(PositionProperty, value); }
}
public double Speed
{
get { return (double)GetValue(SpeedProperty); }
set { SetValue(SpeedProperty, value); }
}
后面还有 63 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。