This commit is contained in:
parent
236f2b9fe9
commit
c90633f795
@ -94,6 +94,13 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
this.RaiseListChangedEvents = true;
|
||||
}
|
||||
public string Summarize()
|
||||
{
|
||||
StringBuilder sb = new StringBuilder("");
|
||||
foreach (TransitionInfo trans in this)
|
||||
sb.Append("\r\n" + trans.PathFrom);
|
||||
return sb.ToString();
|
||||
}
|
||||
#endregion
|
||||
#region ExternalTransitionsToChildren
|
||||
private class ExternalTransitionsToChildrenCriteria
|
||||
|
@ -98,8 +98,8 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
foreach (Item tmp in _RefreshItems)
|
||||
{
|
||||
ItemInfo.Refresh(tmp);
|
||||
if (tmp._MyContent != null) ContentInfo.Refresh(tmp._MyContent);
|
||||
ItemInfo.Refresh(tmp);
|
||||
}
|
||||
foreach (ItemAnnotation tmp in _RefreshItemAnnotations)
|
||||
{
|
||||
|
@ -453,11 +453,11 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
_MyPrevious = null; // Reset list so that the next line gets a new list
|
||||
if (MyPrevious != null) MyPrevious.RefreshNextItems(); // Update List for new value
|
||||
if (_ContentID != tmp.ContentID)
|
||||
{
|
||||
//if (_ContentID != tmp.ContentID)
|
||||
//{
|
||||
if (MyContent != null) MyContent.RefreshContentItems(); // Update List for old value
|
||||
_ContentID = tmp.ContentID; // Update the value
|
||||
}
|
||||
//}
|
||||
_MyContent = null; // Reset list so that the next line gets a new list
|
||||
if (MyContent != null) MyContent.RefreshContentItems(); // Update List for new value
|
||||
_DTS = tmp.DTS;
|
||||
|
@ -37,6 +37,26 @@ namespace VEPROMS.CSLA.Library
|
||||
foreach (ItemInfo tmp in this)
|
||||
{
|
||||
tmp.Changed += new ItemInfoEvent(tmp_Changed);
|
||||
tmp.Deleted += new ItemInfoEvent(tmp_Deleted);
|
||||
}
|
||||
}
|
||||
private bool _RefreshingList = false;
|
||||
public bool RefreshingList
|
||||
{
|
||||
get { return _RefreshingList; }
|
||||
set { _RefreshingList = value; }
|
||||
}
|
||||
void tmp_Deleted(object sender)
|
||||
{
|
||||
ItemInfo ii = sender as ItemInfo;
|
||||
if (ii != null)
|
||||
{
|
||||
IsReadOnly = false;
|
||||
Remove(ii);
|
||||
IsReadOnly = true;
|
||||
RefreshingList = true;
|
||||
this.OnListChanged(new ListChangedEventArgs(ListChangedType.ItemChanged, 0));
|
||||
RefreshingList = false;
|
||||
}
|
||||
}
|
||||
void tmp_Changed(object sender)
|
||||
|
Loading…
x
Reference in New Issue
Block a user