示例#1
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);
     }
 }
示例#2
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);
     }
 }
示例#3
0
 private void OnAfterSelected(object sender, LinkedDataSourceEventArgs e)
 {
     if ( e.Index == PrimaryMember.EntityIndex )
     {
         PrimaryMember.CurrentEntity = e.Entity;
         PrimaryMember.DeepLoad();
         UpdateControl(e.Entity);
     }
 }
示例#4
0
        private void OnAfterUpdating(object sender, LinkedDataSourceEventArgs e)
        {
            if ( e.Index == PrimaryMember.EntityIndex )
            {
                PrimaryMember.CurrentEntity = e.Entity;
                PrimaryMember.DeepLoad();

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

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

                InsertLinks();
                InsertReferences();
            }
        }