首次提交:添加src文件夹代码

This commit is contained in:
2026-02-27 14:02:43 +08:00
commit d330cfbca7
4184 changed files with 5546478 additions and 0 deletions

View 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));
}
}
}