예제 #1
0
 public void ReinitScanProperties()
 {
     LabelPercents.Text = "0%";
     ProgessScan.Value  = 0;
     labelItems.Text    = "0 Errors Found!";
     labelJunkSize.Text = "0MB Junk Files Found!";
     _JunksSize         = 0.0;
     _current_junk_size = 0;
     JunksSizeTotal     = 0;
     ProgessScan.MarqueeUpdate();
     ButtonResume.Visible     = false;
     ButtonPause.Visible      = true;
     ButtonStop.Visible       = true;
     ButtonNExtBottom.Visible = false;
     ButtonNextTop.Visible    = false;
     ButtonPrevBottom.Visible = false;
     ButtonPrevTop.Visible    = false;
     foreach (var item in _ProcessingItems)
     {
         item.JunksSize   = 0;
         item.ErorrsCount = "0";
         //item.CurrentState = ItemState.eNotScanned;
     }
     foreach (var items in CustomScannerItems)
     {
         items.FoundItems.Clear();
     }
     BackupManager.BackUpKeys.Clear();
     GC.Collect();
 }
예제 #2
0
        private void ScannerFinishedProcessing(int id)
        {
            if (ProgessScan.Value + 100 / CleanEngineClient.Instance().GetActualScanners().Count < 100)
            {
                ProgessScan.MarqueeUpdate();
                ProgessScan.Value += 100 / CleanEngineClient.Instance().GetActualScanners().Count;
            }
            else
            {
                ProgessScan.Value = 100;
                ScanningFinishedDelegate delegate_sc_finished = new ScanningFinishedDelegate(ScanningFinished);
                this.Invoke(delegate_sc_finished, new object[] { false });
            }
            ScannerChangedDelegate delegate_percents = new ScannerChangedDelegate(IncrementPercents);

            LabelPercents.Invoke(delegate_percents, new object[] { ProgessScan.Value.ToString(), id });
        }