public EdgeEliminationForm(PlaneTSP tsp, PaintManagement pm) { InitializeComponent(); MyTSP = tsp; MyPM = pm; cPointSize = (int)numericUpDown1.Value; }
private void BtnLoad_Click(object sender, EventArgs e) { MyTSP = new PlaneTSP(FilePath, true); lblNumNodes.Text = MyTSP.Graph.NumberNodes.ToString(); lblNumEdges.Text = MyTSP.Graph.NumberEdges.ToString(); grpBoxGraph.Enabled = true; grpBoxModel.Enabled = true; grpBoxConvexHulls.Enabled = true; grpBoxSpanningTree.Enabled = true; grpBoxExpandSpanTree.Enabled = true; grpBoxTour.Enabled = true; }