Kayıtlar

Ocak, 2014 tarihine ait yayınlar gösteriliyor

Progress Bar Percentage

Resim
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);

C # Array Intersect

Resim
C # Array Intersect void Main() { string[] array1 = { "Red", "blue", "green","black" }; string[] array3 = { "Red", "blue", "green","black" }; var results = array1.Intersect(array3, StringComparer.OrdinalIgnoreCase);     Console.Write(results); }