aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.BL/ObservableModifiedEventArgs.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-08-01 10:29:09 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-08-01 10:29:09 +0300
commitd5c6067365e12674e95acaef4c4af45eaead8c3e (patch)
tree0345d7e407a3e714061dc9bc26152c9efe977bd9 /Software/Visual_Studio/Tango.BL/ObservableModifiedEventArgs.cs
parent91c672c0b0b01bc68a6adfa2aada337c6488a614 (diff)
downloadTango-d5c6067365e12674e95acaef4c4af45eaead8c3e.tar.gz
Tango-d5c6067365e12674e95acaef4c4af45eaead8c3e.zip
Implemented notification for observables entities modification..
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/ObservableModifiedEventArgs.cs')
-rw-r--r--Software/Visual_Studio/Tango.BL/ObservableModifiedEventArgs.cs43
1 files changed, 43 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.BL/ObservableModifiedEventArgs.cs b/Software/Visual_Studio/Tango.BL/ObservableModifiedEventArgs.cs
new file mode 100644
index 000000000..2b49154b3
--- /dev/null
+++ b/Software/Visual_Studio/Tango.BL/ObservableModifiedEventArgs.cs
@@ -0,0 +1,43 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Tango.BL
+{
+ /// <summary>
+ /// Represents an observable modified event arguments.
+ /// </summary>
+ /// <seealso cref="System.EventArgs" />
+ public class ObservableModifiedEventArgs : EventArgs
+ {
+ /// <summary>
+ /// Gets or sets the modified entity context.
+ /// </summary>
+ public ObservablesContext Context { get; set; }
+
+ /// <summary>
+ /// Gets or sets the modified entity.
+ /// </summary>
+ public IObservableEntity ModifiedEntity { get; set; }
+
+ /// <summary>
+ /// Gets or sets the notified entity.
+ /// </summary>
+ public IObservableEntity NotifiedEntity { get; set; }
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="ObservableModifiedEventArgs"/> class.
+ /// </summary>
+ /// <param name="context">The context.</param>
+ /// <param name="source">The source.</param>
+ /// <param name="target">The target.</param>
+ public ObservableModifiedEventArgs(ObservablesContext context, IObservableEntity source, IObservableEntity target)
+ {
+ Context = context;
+ ModifiedEntity = source;
+ NotifiedEntity = target;
+ }
+ }
+}