private void OnAfterSelected(object sender, LinkedDataSourceEventArgs e)
 {
     if (e.Index == PrimaryMember.EntityIndex)
     {
         PrimaryMember.CurrentEntity = e.Entity;
         PrimaryMember.DeepLoad();
         UpdateControl(e.Entity);
     }
 }
        private void OnAfterUpdated(object sender, LinkedDataSourceEventArgs e)
        {
            if (e.Index == PrimaryMember.EntityIndex)
            {
                PrimaryMember.CurrentEntity = e.Entity;

                if (!PrimaryMember.EnableDeepSave)
                {
                    UpdateRelationships(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 OnAfterSelected(object sender, LinkedDataSourceEventArgs e)
 {
     if ( e.Index == PrimaryMember.EntityIndex )
     {
         PrimaryMember.CurrentEntity = e.Entity;
         PrimaryMember.DeepLoad();
         UpdateControl(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();
            }
        }
Beispiel #6
0
 /// <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);
     }
 }
Beispiel #7
0
 /// <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);
     }
 }