diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-20 14:17:56 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-20 14:22:24 +0100 |
| commit | d8367a33368e783c15f2072daa9237b2643526d3 (patch) | |
| tree | b770c2b8d3d6f0b6f6f69676f0e42194af2c053a /src/GraphicObjects/TemplatedGroup.cs | |
| parent | 0ce668c6c13521ebfcb9ed02365556a31a65b6b2 (diff) | |
debug threading with new TemplatedGroup arch, review examples.singleLeveledTemplatedGroup
Diffstat (limited to 'src/GraphicObjects/TemplatedGroup.cs')
| -rw-r--r-- | src/GraphicObjects/TemplatedGroup.cs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/GraphicObjects/TemplatedGroup.cs b/src/GraphicObjects/TemplatedGroup.cs index f2c097a2..8025435d 100644 --- a/src/GraphicObjects/TemplatedGroup.cs +++ b/src/GraphicObjects/TemplatedGroup.cs @@ -216,9 +216,9 @@ namespace Crow if (this.isPaged) { int p = e.Index / itemPerPage; int i = e.Index % itemPerPage; - (items.Children [p] as Group).RemoveChild (i); + (items.Children [p] as Group).DeleteChild (i); } else - items.RemoveChild (e.Index); + items.DeleteChild (e.Index); } void Ol_ListAdd (object sender, ListChangedEventArg e) @@ -268,7 +268,7 @@ namespace Crow public virtual void RemoveItem(GraphicObject g) { g.LogicalParent = null; - items.RemoveChild (g); + items.DeleteChild (g); if (items.Children.Count == 0) NotifyValueChanged ("HasChildren", false); } @@ -375,8 +375,10 @@ namespace Crow // isPaged = true; // } - for (int i = 0; i < _data.Count; i++) { + for (int i = 0; i < _data.Count; i++) { loadItem (_data[i], page, _dataTest); + if (loadingThread.cancelRequested) + break; } // if (page == items) @@ -425,13 +427,13 @@ namespace Crow iTemp = ItemTemplates ["default"]; } - lock (CurrentInterface.LayoutMutex) { + //lock (CurrentInterface.LayoutMutex) { g = iTemp.CreateInstance(CurrentInterface); page.AddChild (g); // if (isPaged) g.LogicalParent = this; g.MouseDown += itemClick; - } + //} if (iTemp.Expand != null && g is Expandable) { (g as Expandable).Expand += iTemp.Expand; |