Mark Heath avatar Mark Heath committed e7b145f

step towards allowing other types of node control

Comments (0)

Files changed (3)

 *.suo
 packages/
 *.crunchsolution.cache
+_ReSharper.*

GraphPad/Logic/GraphRenderer.cs

             return new Point((double)node.GetValue(Canvas.LeftProperty) + radius, (double)node.GetValue(Canvas.TopProperty) + radius);
         }
 
-        private static NodeControl CreateNodeControl(double left, double top, string name)
+        private static UserControl CreateNodeControl(double left, double top, string name)
         {
             var nodeControl = new NodeControl();
             nodeControl.SetValue(Canvas.LeftProperty, left);

GraphPad/MainWindow.xaml.cs

 using System;
-using System.Collections.Generic;
 using System.Linq;
 using System.Text;
 using System.Windows;
             RecreateGraph();
         }
 
-        private Dictionary<string, NodeControl> nodes = new Dictionary<string, NodeControl>();
-
         private void RecreateGraph()
         {
             GraphBuilder builder = new GraphBuilder();
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.