public FindPathButton(int width, int height, int positionX, int positionY , GraphRepresentation.AdjacencyList adList, List <EdgeDraw> edgeDraws , InputCountBox startVertex, InputCountBox endVertex , StartForm.DrawForm drawForm, InfoTextLabel infoText) { Size = new System.Drawing.Size(width, height); Location = new System.Drawing.Point(positionX, positionY); Text = "Find path"; Click += new EventHandler(ButtonClick); this.adList = adList; this.edgeDraws = edgeDraws; this.startVertex = startVertex; this.endVertex = endVertex; this.drawForm = drawForm; this.infoText = infoText; path = null; }
public CycleButton(int width, int height, AdjacencyList adjacencyList, List <EdgeDraw> edgeDraws, StartForm.DrawForm drawForm) { Size = new System.Drawing.Size(width, height); Dock = DockStyle.Top; Text = "Show Cycle"; Click += new EventHandler(ButtonClick); converter = new Algorithms.Converter(); this.adjacencyList = adjacencyList; this.edgeDraws = edgeDraws; this.drawForm = drawForm; cycles = null; colors = new List <BrushColor> { BrushColor.Green, BrushColor.Orange, BrushColor.Yellow }; }