步步为盈

38 lines
771 B

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