GitHubDashboard/Dashboard.cs
/// <summary>
/// Update the specific diagram and word-node map.
/// </summary>
Update the specific diagram and word-node map.
Update the specific diagram and word - node map .
protected void AddOrUpdateNode(string word, Node rootNode, Dictionary<string, TextNode> wordNodeMap, Func<int> getTotalWords)
		{
			if (!String.IsNullOrEmpty(word))
			{
				if (!wordNodeMap.ContainsKey(word))
				{
					PointF p = rootNodeEvents.Location;
					TextNode n = new TextNode(word, p, getTotalWords);
					rootNode.AddChild(n);
					wordNodeMap[word] = n;
				}
				else
				{
					wordNodeMap[word].IncrementCount();
				}
			}
		}
protected void AddOrUpdateNode ( string word , Node rootNode , Dictionary < string , TextNode > wordNodeMap , Func < int > getTotalWords ) { if ( ! String . IsNullOrEmpty ( word ) ) { if ( ! wordNodeMap . ContainsKey ( word ) ) { PointF p = rootNodeEvents . Location ; TextNode n = new TextNode ( word , p , getTotalWords ) ; rootNode . AddChild ( n ) ; wordNodeMap [ word ] = n ; } else { wordNodeMap [ word ] . IncrementCount ( ) ; } } }
Update the specific diagram and word-node map.
Update the specific diagram and word - node map .
word
string
rootNode
Node
wordNodeMap
Dictionary<string, TextNode>
getTotalWords
Func<int>