예제 #1
0
 public void ShowDeletingErrorsAmount()
 {
     if (lDeletingErrorsAmount.InvokeRequired)
     {
         labelEmptyCallBack cb = new labelEmptyCallBack(ShowDeletingErrorsAmount);
         this.Invoke(cb, new object[] { });
     }
     else
     {
         lDeletingErrorsAmount.Text = badFilesForDeleting.Count.ToString();
     }
 }
예제 #2
0
 public void FindingFinishedSizeCaption()
 {
     if (lFilesSize.InvokeRequired)
     {
         labelEmptyCallBack lecb = new labelEmptyCallBack(FindingFinishedSizeCaption);
         this.Invoke(lecb, new object[] { });
     }
     else
     {
         lFilesSize.Text = "( " + BackgroundFinder.FormattedSizeString(foundFilesSize) + " )";
     }
 }
예제 #3
0
 public void DeletingFinishedCaption()
 {
     if (lcurFileName.InvokeRequired)
     {
         labelEmptyCallBack lecb = new labelEmptyCallBack(DeletingFinishedCaption);
         this.Invoke(lecb, new object[] { });
     }
     else
     {
         StopRotateTheCircle();
         lcurFileName.Text = "Удаление завершено";
         MessageBox.Show("Удаление завершено");
     }
 }
예제 #4
0
 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);
         }
     }
 }