Commits

Mark Heath  committed e7b145f

step towards allowing other types of node control

  • Participants
  • Parent commits 08d99a0

Comments (0)

Files changed (3)

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

File 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);

File 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();