private void Redraw() { TxtNumber.Text = Counter.ToString(); TxtEstimate.Text = CalculatedPi.ToString(); PieGraph.Draw(); //Thread.Sleep(50) }
private void Redraw() { if (started) { TxtNumber.Text = (number + 1).ToString(); TxtEstimate.Text = (4.0 * CalculatedPie).ToString(); TxtEstimate2.Text = CalculatedE.ToString(); if (number % 10 == 1) { PieGraph.Draw(); eGraph.Draw(); } } }