831 bytes added,
08:47, 4 November 2015 {{Internal/Coding/Events}}
=== Example 1 ===
{{Internal/CodeSnippetInfo|KNO|Whenever an object's properties are changed, the value of the property SL_EXPORT_STATUS is set to 0. Except, if the only changed property is the SL_EXPORT_STATUS itself..}}
<syntaxhighlight lang="csharp">
protected override void OnPrepareForSave(UBIK.Kernel.ObjectUpdatedEventArgs e)
{
//***UBIK customized code for OnPrepareForSave.
//***Initial edited on 04/11/2015 09:32:07
//...
//Please insert your custom code here:
//...
// Reset the export status
bool changedExportStatusOnly = (e.ChangedProperties.Length == 1) && (e.ChangedProperties[0].Equals("SL_EXPORT_STATUS"));
if (!changedExportStatusOnly)
this.SL_EXPORT_STATUS = 0;
base.OnPrepareForSave(e);
}
</syntaxhighlight>
[[Category:Events (internal)|OnPrepareForSave (Event)]]