private void IncreaseValue() { Value++; HasMerged = true; UpdatedValue?.Invoke(Value); }
public void SetValue(int x, int y, int value) { X = x; Y = y; Value = value; UpdatedValue?.Invoke(Value); }
public new TValue this[TKey key] { get => base[key]; set { base[key] = value; Updated.Invoke(key, value); UpdatedValue.Invoke(value); } }
public new bool TryAdd( TKey key, TValue value) { if (base.TryAdd(key, value)) { Updated.Invoke(key, value); UpdatedValue.Invoke(value); return(true); } return(false); }