protected BaseProfit(CommonItem item) { Item = item; Item.CostUpdate += ItemOnCostUpdate; TreeProps = new TreeProps(); TreeProps.IsSelectedUpdate += TreePropsOnIsSelectedUpdate; }
public CraftingResource(CommonItem item, int count, bool isReturnable) { TreeProps = new TreeProps { IsExpanded = false }; Item = item; Count = count; IsReturnable = isReturnable; Item.CostUpdate += ItemOnCostUpdate; }
protected BaseRequirement() { TreeProps = new TreeProps(); TreeProps.IsSelectedUpdate += TreePropsOnIsSelectedUpdate; }