using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tango.BL
{
///
/// Represents an observable modified event arguments.
///
///
public class ObservableModifiedEventArgs : EventArgs
{
///
/// Gets or sets the modified entity context.
///
public ObservablesContext Context { get; set; }
///
/// Gets or sets the modified entity.
///
public IObservableEntity ModifiedEntity { get; set; }
///
/// Gets or sets the notified entity.
///
public IObservableEntity NotifiedEntity { get; set; }
///
/// Gets a value indicating whether the modified entity is not the notified entity.
///
public bool IsOtherContext
{
get { return ModifiedEntity != NotifiedEntity; }
}
///
/// Initializes a new instance of the class.
///
/// The context.
/// The source.
/// The target.
public ObservableModifiedEventArgs(ObservablesContext context, IObservableEntity source, IObservableEntity target)
{
Context = context;
ModifiedEntity = source;
NotifiedEntity = target;
}
}
}