| 1 | using Core.Models.Db; |
| 2 | using System; |
| 3 | using System.Collections.Generic; |
| 4 | using System.Collections.ObjectModel; |
| 5 | using System.Linq; |
| 6 | using System.Text; |
| 7 | using System.Threading.Tasks; |
| 8 | using System.Windows; |
| 9 | using UI.Models.Category; |
| 10 | |
| 11 | namespace UI.Models |
| 12 | { |
| 13 | public class CategoryPageModel : ModelBase |
| 14 | { |
| 15 | private ObservableCollection<CategoryModel> Data_; |
| 16 | public ObservableCollection<CategoryModel> Data |
| 17 | { |
| 18 | get { return Data_; } |
| 19 | set { Data_ = value; OnPropertyChanged(); } |
| 20 | } |
| 21 | |
| 22 | private CategoryModel SelectedAppCategoryItem_; |
| 23 | public CategoryModel SelectedAppCategoryItem { get { return SelectedAppCategoryItem_; } set { SelectedAppCategoryItem_ = value; OnPropertyChanged(); } } |
| 24 | |
| 25 | |
| 26 | private Visibility EditVisibility_ = Visibility.Collapsed; |
| 27 | public Visibility EditVisibility { get { return EditVisibility_; } set { EditVisibility_ = value; OnPropertyChanged(); } } |
| 28 | |
| 29 | private bool IsCreate_ = false; |
| 30 | ///<summary> |
| 31 | /// |
| 32 | ///</summary> |
| 33 | public bool IsCreate { get { return IsCreate_; } set { IsCreate_ = value; OnPropertyChanged(); } } |
| 34 | |
| 35 | private string EditName_; |
| 36 | ///<summary> |
| 37 | /// |
| 38 | ///</summary> |
| 39 | public string EditName { get { return EditName_; } set { EditName_ = value; OnPropertyChanged(); } } |
| 40 | |
| 41 | private string EditIconFile_; |
| 42 | ///<summary> |
| 43 | /// |
| 44 | ///</summary> |
| 45 | public string EditIconFile |
| 46 | { |
| 47 | get { return EditIconFile_; } |
| 48 | set { EditIconFile_ = value; OnPropertyChanged(); } |
| 49 | } |
| 50 | private bool EditIsDirectoryMath_; |
| 51 | ///<summary> |
| 52 | /// |
| 53 | ///</summary> |
| 54 | public bool EditIsDirectoryMath { get { return EditIsDirectoryMath_; } set { EditIsDirectoryMath_ = value; OnPropertyChanged(); } } |
| 55 | private ObservableCollection<string> EditDirectories_ = new ObservableCollection<string>(); |
| 56 | ///<summary> |
| 57 | /// |
| 58 | ///</summary> |
| 59 | public ObservableCollection<string> EditDirectories { get { return EditDirectories_; } set { EditDirectories_ = value; OnPropertyChanged(); } } |
| 60 | private string EditSelectedDirectory_; |
| 61 | ///<summary> |
| 62 | /// |
| 63 | ///</summary> |
| 64 | public string EditSelectedDirectory { get { return EditSelectedDirectory_; } set { EditSelectedDirectory_ = value; OnPropertyChanged(); } } |
| 65 | private string EditErrorText_; |
| 66 | public string EditErrorText |
| 67 | { |
| 68 | get { return EditErrorText_; } |
| 69 | set { EditErrorText_ = value; OnPropertyChanged(); } |
| 70 | } |
| 71 | private bool IsEditError_ = false; |
| 72 | public bool IsEditError { get { return IsEditError_; } set { IsEditError_ = value; OnPropertyChanged(); } } |
| 73 | |
| 74 | private string EditColor_; |
| 75 | public string EditColor { get { return EditColor_; } set { EditColor_ = value; OnPropertyChanged(); } } |
| 76 | |
| 77 | public class WebCategoryModel |
| 78 | { |
| 79 | public WebSiteCategoryModel Data { get; set; } |
| 80 | public int Count { get; set; } |
| 81 | } |
| 82 | |
| 83 | private ObservableCollection<WebCategoryModel> WebCategoryData_; |
| 84 | public ObservableCollection<WebCategoryModel> WebCategoryData { get { return WebCategoryData_; } set { WebCategoryData_ = value; OnPropertyChanged(); } } |
| 85 | |
| 86 | private WebCategoryModel SelectedWebCategoryItem_; |
| 87 | public WebCategoryModel SelectedWebCategoryItem { get { return SelectedWebCategoryItem_; } set { SelectedWebCategoryItem_ = value; OnPropertyChanged(); } } |
| 88 | } |
| 89 | } |