Update related lists when related value changes.

This commit is contained in:
Rich
2008-05-01 11:01:21 +00:00
parent 26de18fb28
commit 1973b9646c
20 changed files with 561 additions and 87 deletions

View File

@@ -202,7 +202,13 @@ namespace VEPROMS.CSLA.Library
}
private void RefreshFields(Detail tmp)
{
_ContentID = tmp.ContentID;
if (_ContentID != tmp.ContentID)
{
MyContent.RefreshContentDetails(); // Update List for old value
_ContentID = tmp.ContentID; // Update the value
_MyContent = null; // Reset list so that the next line gets a new list
MyContent.RefreshContentDetails(); // Update List for new value
}
_ItemType = tmp.ItemType;
_Text = tmp.Text;
_Config = tmp.Config;