|
|
|
|
@ -24,25 +24,7 @@ namespace GBase.Api |
|
|
|
|
/// <param name="value">The new value</param> |
|
|
|
|
protected void RaiseGBaseEntryChanged(object entry, string columnName, object value) |
|
|
|
|
{ |
|
|
|
|
GBaseEntryChanged?.BeginInvoke(entry, new GBaseEntryChangedEventArgs(columnName, value), GBaseEntryChangedCallback, null); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// Raise the GBaseEntry removed (<see cref="GBaseEntryChanged"/> event without args) |
|
|
|
|
/// </summary> |
|
|
|
|
/// <param name="entry">The entry (sender)</param> |
|
|
|
|
protected void RaiseGBaseEntryRemoved(object entry) |
|
|
|
|
{ |
|
|
|
|
GBaseEntryChanged?.BeginInvoke(entry, null, GBaseEntryChangedCallback, null); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// Callback for the <see cref="GBaseEntryChanged"/> event |
|
|
|
|
/// </summary> |
|
|
|
|
/// <param name="asyncResult">The <see cref="IAsyncResult"/></param> |
|
|
|
|
private void GBaseEntryChangedCallback(IAsyncResult asyncResult) |
|
|
|
|
{ |
|
|
|
|
GBaseEntryChanged?.EndInvoke(asyncResult); //TestMe: Does this work? Or is there something to be done with the asyncResult |
|
|
|
|
GBaseEntryChanged?.Invoke(entry, new GBaseEntryChangedEventArgs(columnName, value)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |