Esempio n. 1
0
 private void deleteBtn_Click(object sender, EventArgs e)
 {
     if (delBox.Text.Length != 0)
     {
         Stopwatch sw = new Stopwatch();
         sw.Start();
         Algoritmi.IzbrisiCvor(Convert.ToInt32(delBox.Text));
         sw.Stop();
         timeLabel.Text = sw.ElapsedMilliseconds.ToString() + " ms";
         Algoritmi.graphicsObj.Clear(Color.DimGray);
         Algoritmi.CrtajSve(Algoritmi.root, 1, 50, drawPanel.Width / 2);
     }
     delBox.Text = "";
 }