Example #1
0
 internal void UpdateScanBranchStats(int ScanDone, int TotalScans, string Message, bool Progress, bool CloseWindow)
 {
     if (ScanBranchProgressLbl.InvokeRequired)
     {
         UpdateScanBranchStats_d USBS_d = new UpdateScanBranchStats_d(UpdateScanBranchStats);
         ScanBranchProgressLbl.Invoke(USBS_d, new object[] { ScanDone, TotalScans, Message, Progress, CloseWindow });
     }
     else
     {
         if (Progress)
         {
             ScanBranchProgressBar.PerformStep();
         }
         ScanBranchProgressLbl.Text = Message;
         if (ScanDone == TotalScans)
         {
             FinalBtn.Text    = "Close";
             FinalBtn.Enabled = true;
         }
         if (CloseWindow)
         {
             this.Close();
         }
     }
 }
Example #2
0
 internal static void UpdateScanBranchStats(int ScanDone, int TotalScans, string Message, bool Progress, bool CloseWindow)
 {
     if (IronUI.SBF.InvokeRequired)
     {
         UpdateScanBranchStats_d USBS_d = new UpdateScanBranchStats_d(UpdateScanBranchStats);
         UI.Invoke(USBS_d, new object[] { ScanDone, TotalScans , Message, Progress, CloseWindow});
     }
     else
     {
         if (Progress) IronUI.SBF.ScanBranchProgressBar.PerformStep();
         IronUI.SBF.ScanBranchProgressLbl.Text = Message;
         if (ScanDone == TotalScans) IronUI.SBF.FinalBtn.Text = "Close";
         if (CloseWindow) IronUI.SBF.Close();
     }
 }
 internal void UpdateScanBranchStats(int ScanDone, int TotalScans, string Message, bool Progress, bool CloseWindow)
 {
     if (ScanBranchProgressLbl.InvokeRequired)
     {
         UpdateScanBranchStats_d USBS_d = new UpdateScanBranchStats_d(UpdateScanBranchStats);
         ScanBranchProgressLbl.Invoke(USBS_d, new object[] { ScanDone, TotalScans, Message, Progress, CloseWindow });
     }
     else
     {
         if (Progress) ScanBranchProgressBar.PerformStep();
         ScanBranchProgressLbl.Text = Message;
         if (ScanDone == TotalScans)
         {
             FinalBtn.Text = "Close";
             FinalBtn.Enabled = true;
         }
         if (CloseWindow) this.Close();
     }
 }