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