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