From 2235eeeb9d7e526b8572bb8a101560c3302c23b9 Mon Sep 17 00:00:00 2001 From: Chris Cameron Date: Thu, 22 Oct 2020 12:17:55 -0400 Subject: [PATCH] feat: Initial commit of INotifyCollectionChanged --- .../Collections/INotifyCollectionChanged.cs | 14 ++++++++++++++ .../ICD.Common.Utils_SimplSharp.csproj | 1 + 2 files changed, 15 insertions(+) create mode 100644 ICD.Common.Utils/Collections/INotifyCollectionChanged.cs diff --git a/ICD.Common.Utils/Collections/INotifyCollectionChanged.cs b/ICD.Common.Utils/Collections/INotifyCollectionChanged.cs new file mode 100644 index 0000000..0d81aac --- /dev/null +++ b/ICD.Common.Utils/Collections/INotifyCollectionChanged.cs @@ -0,0 +1,14 @@ +using System; + +namespace ICD.Common.Utils.Collections +{ + // Poor-mans System.Collections.Specialized + // Delete when we finally drop Crestron 3-series. + public interface INotifyCollectionChanged + { + /// + /// Raised when the contents of the collection change, or the order changes. + /// + event EventHandler OnCollectionChanged; + } +} diff --git a/ICD.Common.Utils/ICD.Common.Utils_SimplSharp.csproj b/ICD.Common.Utils/ICD.Common.Utils_SimplSharp.csproj index 22b20ea..462ff4e 100644 --- a/ICD.Common.Utils/ICD.Common.Utils_SimplSharp.csproj +++ b/ICD.Common.Utils/ICD.Common.Utils_SimplSharp.csproj @@ -80,6 +80,7 @@ +