跳到主要内容

github/tai

公开

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

浏览文件

CategoryWebSiteListPageModel.cs

50 行 · 1.9 KB历史下载
1using Core.Models;
2using Core.Models.Db;
3using System;
4using System.Collections.Generic;
5using System.Collections.ObjectModel;
6using System.Linq;
7using System.Text;
8using System.Threading.Tasks;
9using System.Windows;
10using UI.Controls.Select;
11using UI.Models.CategoryAppList;
12
13namespace UI.Models
14{
15 public class CategoryWebSiteListPageModel : ModelBase
16 {
17 public class OptionModel
18 {
19 public bool IsChecked { get; set; }
20 public WebSiteModel WebSite { get; set; }
21 public SelectItemModel OptionValue { get; set; } = new SelectItemModel();
22 }
23 private Visibility ChooseVisibility_ = Visibility.Hidden;
24 public Visibility ChooseVisibility { get { return ChooseVisibility_; } set { ChooseVisibility_ = value; OnPropertyChanged(); } }
25
26 private WebSiteModel SelectedItem_;
27 public WebSiteModel SelectedItem { get { return SelectedItem_; } set { SelectedItem_ = value; OnPropertyChanged(); } }
28
29 private string SearchInput_;
30 public string SearchInput { get { return SearchInput_; } set { SearchInput_ = value; OnPropertyChanged(); } }
31
32 private ObservableCollection<WebSiteModel> CategoryWebSiteList_;
33 /// <summary>
34 /// 分类站点列表
35 /// </summary>
36 public ObservableCollection<WebSiteModel> CategoryWebSiteList { get { return CategoryWebSiteList_; } set { CategoryWebSiteList_ = value; OnPropertyChanged(); } }
37
38 private WebSiteCategoryModel Category_;
39 /// <summary>
40 /// 当前分类
41 /// </summary>
42 public WebSiteCategoryModel Category { get { return Category_; } set { Category_ = value; OnPropertyChanged(); } }
43
44 private List<OptionModel> WebSiteOptionList_;
45 /// <summary>
46 /// 站点可选列表
47 /// </summary>
48 public List<OptionModel> WebSiteOptionList { get { return WebSiteOptionList_; } set { WebSiteOptionList_ = value; OnPropertyChanged(); } }
49 }
50}