跳到主要内容

github/tai

公开

Tai · Windows 软件与网站使用时长统计。上游 Planshit/Tai 的源码镜像,非灵栈原创;MIT 许可。来源:https://github.com/Planshit/Tai 。本次为手动同步,暂不提供安装包。

浏览文件

DataPageModel.cs

102 行 · 2.7 KB历史下载
1using System;
2using System.Collections.Generic;
3using System.Collections.ObjectModel;
4using System.Linq;
5using System.Text;
6using System.Threading.Tasks;
7using System.Windows.Controls;
8using UI.Controls.Charts.Model;
9using UI.Controls.DatePickerBar;
10
11namespace UI.Models
12{
13 public class DataPageModel : ModelBase
14 {
15 private ObservableCollection<string> TabbarData_;
16 /// <summary>
17 /// tabbar data
18 /// </summary>
19 public ObservableCollection<string> TabbarData
20 {
21 get { return TabbarData_; }
22 set { TabbarData_ = value; OnPropertyChanged(); }
23 }
24
25 private int TabbarSelectedIndex_;
26 /// <summary>
27 /// tabbar selected item index
28 /// </summary>
29 public int TabbarSelectedIndex
30 {
31 get { return TabbarSelectedIndex_; }
32 set
33 {
34 TabbarSelectedIndex_ = value;
35 OnPropertyChanged();
36 }
37 }
38
39 private List<ChartsDataModel> Data_;
40 /// <summary>
41 /// data
42 /// </summary>
43 public List<ChartsDataModel> Data
44 {
45 get { return Data_; }
46 set { Data_ = value; OnPropertyChanged(); }
47 }
48
49 private List<ChartsDataModel> MonthData_;
50 /// <summary>
51 /// MonthData
52 /// </summary>
53 public List<ChartsDataModel> MonthData
54 {
55 get { return MonthData_; }
56 set { MonthData_ = value; OnPropertyChanged(); }
57 }
58
59 private List<ChartsDataModel> YearData_;
60 /// <summary>
61 /// YearData
62 /// </summary>
63 public List<ChartsDataModel> YearData
64 {
65 get { return YearData_; }
66 set { YearData_ = value; OnPropertyChanged(); }
67 }
68
69 private DateTime DayDate_;
70 /// <summary>
71 /// date
72 /// </summary>
73 public DateTime DayDate
74 {
75 get { return DayDate_; }
76 set { DayDate_ = value; OnPropertyChanged(); }
77 }
78
79 private DateTime MonthDate_;
80 /// <summary>
81 /// date
82 /// </summary>
83 public DateTime MonthDate
84 {
85 get { return MonthDate_; }
86 set { MonthDate_ = value; OnPropertyChanged(); }
87 }
88
89 private DateTime YearDate_;
90 /// <summary>
91 /// date
92 /// </summary>
93 public DateTime YearDate
94 {
95 get { return YearDate_; }
96 set { YearDate_ = value; OnPropertyChanged(); }
97 }
98
99 private ContextMenu AppContextMenu_;
100 public ContextMenu AppContextMenu { get { return AppContextMenu_; } set { AppContextMenu_ = value; OnPropertyChanged(); } }
101 }
102}