using System; using System.Collections.Generic; namespace BBWYB.Client.Models { public class Department : NotifyObject { private bool isSelected; public string Id { get; set; } public string Name { get; set; } public IList ShopList { get; set; } public bool IsSelected { get => isSelected; set { if (Set(ref isSelected, value)) OnIsSelectedChanged?.Invoke(); } } public Department() { ShopList = new List(); } public Action OnIsSelectedChanged { get; set; } public override string ToString() { return this.Name; } } }