This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
using System;
using System.ComponentModel;
// ReSharper disable CheckNamespace
namespace DTS.Common.Base
{
public abstract class BasePropertyChanged : IBasePropertyChanged
{
public virtual event PropertyChangedEventHandler PropertyChanged;
public bool SetProperty<T>(ref T storage, T value, String propertyName = null)
{
if (Equals(storage, value)) return false;
storage = value;
OnPropertyChanged(propertyName);
return true;
}
public virtual void OnPropertyChanged(string propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}