/// <summary>
 /// Raises the AfterUpdating event.
 /// </summary>
 /// <param name="e">An instance of LinkedDataSourceEventArgs containing the event data.</param>
 internal void OnAfterUpdating(LinkedDataSourceEventArgs e)
 {
     if ( _owner.AfterUpdating != null )
     {
         _owner.AfterUpdating(_owner, e);
     }
 }
 /// <summary>
 /// Raises the AfterSelected event.
 /// </summary>
 /// <param name="e">An instance of LinkedDataSourceEventArgs containing the event data.</param>
 internal void OnAfterSelected(LinkedDataSourceEventArgs e)
 {
     if ( _owner.AfterSelected != null )
     {
         _owner.AfterSelected(_owner, e);
     }
 }
 private void OnAfterSelected(object sender, LinkedDataSourceEventArgs e)
 {
     if ( e.Index == PrimaryMember.EntityIndex )
     {
         PrimaryMember.CurrentEntity = e.Entity;
         PrimaryMember.DeepLoad();
         UpdateControl(e.Entity);
     }
 }
        private void OnAfterUpdating(object sender, LinkedDataSourceEventArgs e)
        {
            if ( e.Index == PrimaryMember.EntityIndex )
            {
                PrimaryMember.CurrentEntity = e.Entity;
                PrimaryMember.DeepLoad();

                if ( PrimaryMember.EnableDeepSave )
                {
                    UpdateRelationships(e.Entity);
                }
            }
        }
        private void OnAfterInserted(object sender, LinkedDataSourceEventArgs e)
        {
            if ( e.Index == PrimaryMember.EntityIndex )
            {
                PrimaryMember.CurrentEntity = e.Entity;

                if ( !PrimaryMember.EnableDeepSave )
                {
                    UpdateRelationships(e.Entity);
                }

                InsertLinks();
                InsertReferences();
            }
        }