步步为盈
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
771 B

3 years ago
using System;
using System.Collections.Generic;
3 years ago
namespace BBWY.Client.Models
{
3 years ago
public class Department : NotifyObject
3 years ago
{
3 years ago
private bool isSelected;
3 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();
}
}
3 years ago
public Department()
{
ShopList = new List<Shop>();
3 years ago
}
3 years ago
public Action OnIsSelectedChanged { get; set; }
public override string ToString()
{
return this.Name;
}
3 years ago
}
}