跳到主要内容

github/tai

公开

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

浏览文件

ModelBase.cs

41 行 · 1.1 KB历史下载
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6using UI.Controls.Select;
7
8namespace UI.Models
9{
10 public class ModelBase : UINotifyPropertyChanged
11 {
12 private SelectItemModel ShowType_;
13 /// <summary>
14 /// 展示类型(0=应用/1=网站)
15 /// </summary>
16 public SelectItemModel ShowType { get { return ShowType_; } set { ShowType_ = value; OnPropertyChanged(); } }
17
18
19 /// <summary>
20 /// 展示类型选项
21 /// </summary>
22 public List<SelectItemModel> ShowTypeOptions { get; } = new List<SelectItemModel>()
23 {
24 new SelectItemModel()
25 {
26 Id=0,
27 Name="应用"
28 },
29 new SelectItemModel()
30 {
31 Id=1,
32 Name="网站"
33 }
34 };
35 public ModelBase()
36 {
37 ShowType = ShowTypeOptions[0];
38 }
39 public virtual void Dispose() { }
40 }
41}