コード例 #1
0
ファイル: BusinessBase.cs プロジェクト: VijayMVC/CSharpBBQ
 /// <summary>
 /// Raises the Saving event
 /// </summary>
 /// <param name="businessObject">
 /// The business Object.
 /// </param>
 /// <param name="action">
 /// The action.
 /// </param>
 protected static void OnSaving(BusinessBase <T, TKey> businessObject, SaveAction action)
 {
     if (Saving != null)
     {
         Saving(businessObject, new SavedEventArgs(action));
     }
 }
コード例 #2
0
 /// <summary>
 /// Raises the Saved event.
 /// </summary>
 protected static void OnSaved(BusinessBase <TYPE, KEY> businessObject, SaveAction action)
 {
     if (Saved != null)
     {
         Saved(businessObject, new SavedEventArgs(action));
     }
 }