public override void ButtonClick(object sender, EventArgs e) { adjacencyList.adjacencyList.Clear(); vertexDraws.Clear(); edgeDraws.Clear(); matrix.Clear(); cells.Clear(); adjacencyListPanel.Controls.Clear(); weightTable.Controls.Clear(); StartForm.StartForm startForm = new StartForm.StartForm(); drawForm.Hide(); startForm.ShowDialog(); drawForm.Close(); }
public override void ButtonClick(object sender, EventArgs e) { adjacencyList.adjacencyList.Clear(); vertexDraws.Clear(); edgeDraws.Clear(); matrix.Clear(); cells.Clear(); adjacencyListPanel.Controls.Clear(); weightTable.Controls.Clear(); if (matrixGraph != null) { matrixGraph.DeleteMatrix(); } inputCountVertexForm = new InputCountVertexForm(startForm); drawForm.Hide(); inputCountVertexForm.ShowDialog(); drawForm.Close(); }