public void Remove(uint count = 1) { Count -= count; OnCountChange?.Invoke(); if (Count == 0) { OnCountSetNull?.Invoke(this); } }
public void Add(uint count = 1) { Count += count; OnCountChange?.Invoke(); }
private void NotifyStateChange() => OnCountChange?.Invoke();