Exemplo n.º 1
0
        protected IEnumerator <object> GenerateNewGraph(List <DeltaInfo> newListItems, GraphKeyType keyType)
        {
            var newGraph = new StackGraph(keyType);

            yield return(newGraph.Build(Instance, newListItems));

            StackGraph           = newGraph;
            GraphHistogram.Items = StackGraph.Functions.OrderedItems.ToArray();
            GraphTreemap.Items   = StackGraph.OrderedItems.ToArray();

            GraphHistogram.Invalidate();
            GraphTreemap.Refresh();
        }
Exemplo n.º 2
0
        protected void SetGraphKeyType(GraphKeyType keyType)
        {
            if (keyType != StackGraphKeyType)
            {
                StackGraphKeyType = keyType;

                GraphHistogram.Items = GraphTreemap.Items = new StackGraphNode[0];
                GraphHistogram.Invalidate();
                GraphTreemap.Invalidate();

                if (PendingRefresh != null)
                {
                    PendingRefresh.Dispose();
                }
                PendingRefresh = Start(RefreshGraph());
            }
        }