public Form1() { #if DEBUG DisplayGeometryGraph.SetShowFunctions(); #endif graphEditor = new GraphEditor(); InitializeComponent(); graphEditor.AddNodeType("Ellipse", Shape.Ellipse, Color.Transparent, Color.Black, 10, "user data", "New Node"); graphEditor.AddNodeType("Square", Shape.Box, Color.Transparent, Color.Black, 6, "user data", ""); graphEditor.AddNodeType("Double Circle", Shape.DoubleCircle, Color.Transparent, Color.Black, 6, "user data", "New Node"); graphEditor.AddNodeType("Diamond", Shape.Diamond, Color.Transparent, Color.Black, 6, "user data", "New Node"); graphEditor.Viewer.NeedToCalculateLayout = true; CreateGraph(); graphEditor.Viewer.NeedToCalculateLayout = false; SuspendLayout(); helpButton.BringToFront(); graphEditor.Viewer.LayoutAlgorithmSettingsButtonVisible = false; ResumeLayout(); helpButton.Click += helpButton_Click; #if DEBUG // Microsoft.Msagl.GraphViewerGdi.DisplayGeometryGraph.SetShowFunctions(); #endif }
public Form1() { #if DEBUG DisplayGeometryGraph.SetShowFunctions(); #endif graphEditor = new GraphEditor(); InitializeComponent(); graphEditor.Viewer.NeedToCalculateLayout = true; CreateGraph(); graphEditor.Viewer.NeedToCalculateLayout = false; SuspendLayout(); button1.BringToFront(); button2.BringToFront(); button3.BringToFront(); button4.BringToFront(); graphEditor.Viewer.LayoutAlgorithmSettingsButtonVisible = false; ResumeLayout(); #if DEBUG // Microsoft.Msagl.GraphViewerGdi.DisplayGeometryGraph.SetShowFunctions(); #endif }