private void ReportProgress(string currentPi, int progressPercentage) { tbResult.Visible = true; tbResult.Text = currentPi; lblProgress.Text = String.Format("Идет вычисление PI - {0:P0}", progressPercentage / 100f); progressBar.Value = progressPercentage; }