Esempio n. 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            output.Clear();
            if (selectedStationContainer.Items.Count == 0)
            {
                popNoStationSelectedError();
            }
            Stopwatch stopWatch = new Stopwatch();

            stopWatch.Start();
            output.Text = prim.primAlgo();
            stopWatch.Stop();
            output.Text += Environment.NewLine + "Took " + stopWatch.ElapsedMilliseconds + " milliseconds to proccess";
        }
Esempio n. 2
0
 private void button2_Click(object sender, EventArgs e)
 {
     output.Text = prim.primAlgo();
 }