| 1 | using System; |
| 2 | using System.Collections.Generic; |
| 3 | using System.Linq; |
| 4 | using System.Text; |
| 5 | using System.Threading.Tasks; |
| 6 | using UI.Controls.Select; |
| 7 | |
| 8 | namespace UI.Models |
| 9 | { |
| 10 | public class ModelBase : UINotifyPropertyChanged |
| 11 | { |
| 12 | private SelectItemModel ShowType_; |
| 13 | ///<summary> |
| 14 | /// |
| 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 | } |