Ejemplo n.º 1
0
 private void Master_CurrentChanged(object sender, CurrentMasterDetailSelectionChanged e)
 {
     if (UserControlDetails == null)
     {
         return;
     }
     foreach (var control in UserControlDetails)
     {
         control.SetBusinessObjectToBindFromRoot((IPhuLiBusinessBase)e.CurrentItem);
         control.RefreshBusiness();
     }
 }
Ejemplo n.º 2
0
        private void UserControl_CurrentChanged(object sender, CurrentMasterDetailSelectionChanged e)
        {
            if (UserControlDetails == null || SuppressCurrentDataChangedEvent)
            {
                return;
            }
            foreach (var control in UserControlDetails)
            {
                if (e.CurrentItem != null)
                {
                    control.SetBusinessObjectPreviewListByRoot((IPhuLiReadOnlyBase)e.CurrentItem);
                }
                else
                {
                    control.BusinessObjectPreviewList = null;
                }

                control.RefreshBusiness();
            }
        }