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