Update related lists when related value changes.
This commit is contained in:
1 parent
26de18fb28
commit
1973b9646c
20 files changed
+561
-87
No files matched your search
@@ -196,7 +196,13 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
private void RefreshFields(Part tmp)
|
||||
{
|
||||
_ItemID = tmp.ItemID;
|
||||
if (_ItemID != tmp.ItemID)
|
||||
{
|
||||
MyItem.RefreshItemParts(); // Update List for old value
|
||||
_ItemID = tmp.ItemID; // Update the value
|
||||
_MyItem = null; // Reset list so that the next line gets a new list
|
||||
MyItem.RefreshItemParts(); // Update List for new value
|
||||
}
|
||||
_DTS = tmp.DTS;
|
||||
_UserID = tmp.UserID;
|
||||
_PartInfoExtension.Refresh(this);
|
||||
@@ -212,7 +218,13 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
private void RefreshFields(ContentPart tmp)
|
||||
{
|
||||
_ItemID = tmp.ItemID;
|
||||
if (_ItemID != tmp.ItemID)
|
||||
{
|
||||
MyItem.RefreshItemParts(); // Update List for old value
|
||||
_ItemID = tmp.ItemID; // Update the value
|
||||
_MyItem = null; // Reset list so that the next line gets a new list
|
||||
MyItem.RefreshItemParts(); // Update List for new value
|
||||
}
|
||||
_DTS = tmp.DTS;
|
||||
_UserID = tmp.UserID;
|
||||
_PartInfoExtension.Refresh(this);
|
||||
|
||||
Reference in new issue
Block a user