public void ShowDeletingErrorsAmount() { if (lDeletingErrorsAmount.InvokeRequired) { labelEmptyCallBack cb = new labelEmptyCallBack(ShowDeletingErrorsAmount); this.Invoke(cb, new object[] { }); } else { lDeletingErrorsAmount.Text = badFilesForDeleting.Count.ToString(); } }
public void FindingFinishedSizeCaption() { if (lFilesSize.InvokeRequired) { labelEmptyCallBack lecb = new labelEmptyCallBack(FindingFinishedSizeCaption); this.Invoke(lecb, new object[] { }); } else { lFilesSize.Text = "( " + BackgroundFinder.FormattedSizeString(foundFilesSize) + " )"; } }
public void DeletingFinishedCaption() { if (lcurFileName.InvokeRequired) { labelEmptyCallBack lecb = new labelEmptyCallBack(DeletingFinishedCaption); this.Invoke(lecb, new object[] { }); } else { StopRotateTheCircle(); lcurFileName.Text = "Удаление завершено"; MessageBox.Show("Удаление завершено"); } }
public void FindingFinishedFillListBox() { if (lbResults.InvokeRequired) { labelEmptyCallBack lecb = new labelEmptyCallBack(FindingFinishedFillListBox); this.Invoke(lecb, new object[] {}); } else { foreach (FilesSearcher.FoundObjectInfo curFoundObjectInfo in bgFinder.result.foundObjectsList) { lbResults.Items.Add(curFoundObjectInfo.Name); } } }