public override void ButtonClick(object sender, EventArgs e)
        {
            matrixGraph.DeleteMatrix();

            StartForm.StartForm startForm = new StartForm.StartForm();

            inputCountVertexForm.Hide();

            startForm.ShowDialog();

            inputCountVertexForm.Close();
        }
Пример #2
0
        public void ButtonClick(object sender, EventArgs e)
        {
            int rows;

            try
            {
                rows = Int32.Parse(inputCountBox.Text);
            }
            catch
            {
                rows = 0;
            }

            matrixGraph.DeleteMatrix();

            matrixGraph.CreateMatrix(rows);
        }