Files
6098/Cowain.Bake.Model/Entity/AuthorityEntity.cs

51 lines
1.4 KiB
C#

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<AuthorityEntity>();
}
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<AuthorityEntity> 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));
}
}
}