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.
37 lines
754 B
37 lines
754 B
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace U
|
|
{
|
|
public class Department : NotifyObject
|
|
{
|
|
private bool isSelected;
|
|
|
|
public string Id { get; set; }
|
|
|
|
public string Name { get; set; }
|
|
|
|
public IList<Shop> ShopList { get; set; }
|
|
public bool IsSelected
|
|
{
|
|
get => isSelected;
|
|
set
|
|
{
|
|
if (Set(ref isSelected, value))
|
|
OnIsSelectedChanged?.Invoke();
|
|
}
|
|
}
|
|
|
|
public Department()
|
|
{
|
|
ShopList = new List<Shop>();
|
|
}
|
|
|
|
public Action OnIsSelectedChanged { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return this.Name;
|
|
}
|
|
}
|
|
}
|
|
|