Exemple #1
0
        private async void Dijkstra_Click(object sender, EventArgs e)
        {
            functions.PerformClick();
            BlockUnblockButtons(false);
            startVertexForm = new StartVertexInfo();
            await Task.Run(() => Algorithms.Dijkstra(drawingSurface1, startVertexForm.GetInput(Circle.number) - 1));

            BlockUnblockButtons(true);
        }
Exemple #2
0
        private async void MColouring_Click(object sender, MouseEventArgs e)
        {
            functions.PerformClick();
            BlockUnblockButtons(false);
            startVertexForm = new StartVertexInfo("Number of colours");
            await Task.Run(() => Algorithms.BackTrackingColouring(drawingSurface1, startVertexForm.GetInput(Circle.number)));

            BlockUnblockButtons(true);
        }