using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace Cowain.Bake.Model.Entity { public class AuthorityEntity:INotifyPropertyChanged { public AuthorityEntity() { Children = new ObservableCollection(); } public int MenuId { get; set; } public string Header { get; set; } public string HeaderName { get; set; } public string TargetView { get; set; } public int? ParentId { get; set; } public Visibility CheckboxVisibility { get; set; } public ObservableCollection Children { get; set; } private bool isHasAuthority; public bool IsHasAuthority { get { return isHasAuthority; } set { if (isHasAuthority != value) { isHasAuthority = value; OnPropertyChanged("IsHasAuthority"); } } } public event PropertyChangedEventHandler PropertyChanged; private void OnPropertyChanged(string propName) { PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propName)); } } }