You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
883 B
26 lines
883 B
// Author: Gockner, Simon
|
|
// Created: 2020-03-06
|
|
// Copyright(c) 2020 SimonG. All Rights Reserved.
|
|
|
|
using System;
|
|
|
|
namespace GBase.Api
|
|
{
|
|
/// <summary>
|
|
/// Notify the GBase that an entry has changed
|
|
/// </summary>
|
|
public abstract class NotifyGBaseEntryChanged : INotifyGBaseEntryChanged
|
|
{
|
|
public event EventHandler<GBaseEntryChangedEventArgs> GBaseEntryChanged;
|
|
|
|
protected void RaiseGBaseEntryChanged(object sender, string propertyName, object value)
|
|
{
|
|
GBaseEntryChanged?.BeginInvoke(sender, new GBaseEntryChangedEventArgs(propertyName, value), GBaseEntryChangedCallback, null);
|
|
}
|
|
|
|
private void GBaseEntryChangedCallback(IAsyncResult asyncResult)
|
|
{
|
|
GBaseEntryChanged?.EndInvoke(asyncResult); //TestMe: Does this work? Or is there something to be done with the asyncResult
|
|
}
|
|
}
|
|
} |