| 1 | using Core.Models; |
| 2 | using Core.Models.Db; |
| 3 | using System; |
| 4 | using System.Collections.Generic; |
| 5 | using System.Collections.ObjectModel; |
| 6 | using System.Linq; |
| 7 | using System.Text; |
| 8 | using System.Threading.Tasks; |
| 9 | using System.Windows; |
| 10 | using UI.Controls.Select; |
| 11 | using UI.Models.CategoryAppList; |
| 12 | |
| 13 | namespace 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 | } |