首次提交:添加src文件夹代码
This commit is contained in:
50
Cowain.Bake.Model/Entity/AuthorityEntity.cs
Normal file
50
Cowain.Bake.Model/Entity/AuthorityEntity.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user