This commit is contained in:
Kathy Ruffing 2009-11-13 13:39:27 +00:00
parent 236f2b9fe9
commit c90633f795
4 changed files with 31 additions and 4 deletions

View File

@ -94,6 +94,13 @@ namespace VEPROMS.CSLA.Library
} }
this.RaiseListChangedEvents = true; 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 #endregion
#region ExternalTransitionsToChildren #region ExternalTransitionsToChildren
private class ExternalTransitionsToChildrenCriteria private class ExternalTransitionsToChildrenCriteria

View File

@ -98,8 +98,8 @@ namespace VEPROMS.CSLA.Library
{ {
foreach (Item tmp in _RefreshItems) foreach (Item tmp in _RefreshItems)
{ {
ItemInfo.Refresh(tmp);
if (tmp._MyContent != null) ContentInfo.Refresh(tmp._MyContent); if (tmp._MyContent != null) ContentInfo.Refresh(tmp._MyContent);
ItemInfo.Refresh(tmp);
} }
foreach (ItemAnnotation tmp in _RefreshItemAnnotations) foreach (ItemAnnotation tmp in _RefreshItemAnnotations)
{ {

View File

@ -453,11 +453,11 @@ namespace VEPROMS.CSLA.Library
} }
_MyPrevious = null; // Reset list so that the next line gets a new list _MyPrevious = null; // Reset list so that the next line gets a new list
if (MyPrevious != null) MyPrevious.RefreshNextItems(); // Update List for new value 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 if (MyContent != null) MyContent.RefreshContentItems(); // Update List for old value
_ContentID = tmp.ContentID; // Update the value _ContentID = tmp.ContentID; // Update the value
} //}
_MyContent = null; // Reset list so that the next line gets a new list _MyContent = null; // Reset list so that the next line gets a new list
if (MyContent != null) MyContent.RefreshContentItems(); // Update List for new value if (MyContent != null) MyContent.RefreshContentItems(); // Update List for new value
_DTS = tmp.DTS; _DTS = tmp.DTS;

View File

@ -37,6 +37,26 @@ namespace VEPROMS.CSLA.Library
foreach (ItemInfo tmp in this) foreach (ItemInfo tmp in this)
{ {
tmp.Changed += new ItemInfoEvent(tmp_Changed); 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) void tmp_Changed(object sender)