This commit is contained in:
2018-06-29 19:47:36 +00:00
commit be7f501333
3769 changed files with 1425961 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
using System;
namespace CSLA.Core
{
/// <summary>
/// This base class declares the IsDirtyChanged event
/// to be NonSerialized so serialization will work.
/// </summary>
[Serializable()]
public abstract class BindableBase
{
/// <summary>
/// Declares a serialization-safe IsDirtyChanged event.
/// </summary>
[field: NonSerialized]
public event EventHandler IsDirtyChanged;
/// <summary>
/// Call this method to raise the IsDirtyChanged event.
/// </summary>
virtual protected void OnIsDirtyChanged()
{
if (IsDirtyChanged != null)
IsDirtyChanged(this, EventArgs.Empty);
}
}
}