public TableRenderer(Table table, OutputWriter output) { _table = table; _table.CellChanged += OnCellChanged; _exclusiveOutput = output.BeginExclusiveWrite(); DrawTable(); }
private void UpdateExclusiveHandleList(Bookmark bookmark) { if (bookmark.ExclusiveHandles != null) { for (int i = 0; i < bookmark.ExclusiveHandles.Count; i++) { ExclusiveHandle handle = bookmark.ExclusiveHandles[i]; Fx.Assert(handle != null, "Internal error.. ExclusiveHandle was null"); handle.RemoveBookmark(bookmark); } } }
private void UpdateAllExclusiveHandles(Bookmark bookmark, ActivityInstance owningInstance) { Fx.Assert(bookmark != null, "Invalid call to UpdateAllExclusiveHandles. Bookmark was null"); Fx.Assert(owningInstance != null, "Invalid call to UpdateAllExclusiveHandles. ActivityInstance was null"); if (owningInstance.PropertyManager == null) { return; } if (!owningInstance.PropertyManager.HasExclusiveHandlesInScope) { return; } List <ExclusiveHandle> handles = owningInstance.PropertyManager.FindAll <ExclusiveHandle>(); if (handles == null) { return; } for (int i = 0; i < handles.Count; i++) { ExclusiveHandle handle = handles[i]; if (handle != null) { if (this.scopeHandle != null) { bool found = false; foreach (BookmarkScopeHandle bookmarkScopeHandle in handle.RegisteredBookmarkScopes) { if (bookmarkScopeHandle == this.scopeHandle) { handle.AddToImportantBookmarks(bookmark); found = true; break; } } if (!found) { handle.AddToUnimportantBookmarks(bookmark); } } else { handle.AddToUnimportantBookmarks(bookmark); } } } }
public bool IsExclusiveScopeUnstable(Bookmark bookmark) { if (bookmark.ExclusiveHandles != null) { for (int i = 0; i < bookmark.ExclusiveHandles.Count; i++) { ExclusiveHandle handle = bookmark.ExclusiveHandles[i]; if (((handle.ImportantBookmarks != null) && handle.ImportantBookmarks.Contains(bookmark)) && ((handle.UnimportantBookmarks != null) && (handle.UnimportantBookmarks.Count != 0))) { return(true); } } } return(false); }
public bool IsExclusiveScopeUnstable(Bookmark bookmark) { if (bookmark.ExclusiveHandles != null) { for (int i = 0; i < bookmark.ExclusiveHandles.Count; i++) { ExclusiveHandle handle = bookmark.ExclusiveHandles[i]; Fx.Assert(handle != null, "Internal error..ExclusiveHandle was null"); if ((handle.ImportantBookmarks != null && handle.ImportantBookmarks.Contains(bookmark)) && (handle.UnimportantBookmarks != null && handle.UnimportantBookmarks.Count != 0)) { return(true); } } } return(false); }
private void UpdateAllExclusiveHandles(Bookmark bookmark, System.Activities.ActivityInstance owningInstance) { if ((owningInstance.PropertyManager != null) && owningInstance.PropertyManager.HasExclusiveHandlesInScope) { List <ExclusiveHandle> list = owningInstance.PropertyManager.FindAll <ExclusiveHandle>(); if (list != null) { for (int i = 0; i < list.Count; i++) { ExclusiveHandle handle = list[i]; if (handle != null) { if (this.scopeHandle != null) { bool flag = false; foreach (BookmarkScopeHandle handle2 in handle.RegisteredBookmarkScopes) { if (handle2 == this.scopeHandle) { handle.AddToImportantBookmarks(bookmark); flag = true; break; } } if (!flag) { handle.AddToUnimportantBookmarks(bookmark); } continue; } handle.AddToUnimportantBookmarks(bookmark); } } } } }