Exemple #1
0
        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();
        }
Exemple #2
0
        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();
        }