Progress Bar Percentage



Progress Bar Percentage



Progress Bar kullanımına bir örnek;

private void SetDeploymentProgressBarPercentage()
{  List<DeploymentItemEntity> deploymentItemList = GetDeploymentItemList();
  int deployedCount = deploymentItemList.FindAll(d => d.IsDeployed).Count;
  if (deployedCount > 0)
{

double totalCount = deploymentItemList.Count;
int completedPercentage = Convert.ToInt32((100.00/totalCount)*deployedCount);
//progressTfProgressBar.Increment(completedPercentage);
progressTfProgressBar.Properties.Stopped = true;
deploymentReportSimpleLabel.Text = string.Format(MessageResource.PercentNComplated, completedPercentage);

Yorumlar

Bu blogdaki popüler yayınlar

HOŞ GELDİNİZ

List String Equals