void BgWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
if (Data.IsIntrabarData ||
Configs.UseTickData && Data.IsTickData ||
Data.Period == DataPeriods.min1)
Backtester.Scan();
ShowScanningResult();
if (warningMessage != string.Empty && Configs.CheckData)
MessageBox.Show(warningMessage + Environment.NewLine + Environment.NewLine +
Language.T("Probably the data is incomplete and the scanning may not be reliable!") + Environment.NewLine +
Language.T("You can try also \"Cut Off Bad Data\"."),
Language.T("Scanner"), MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
progressBar.Style = ProgressBarStyle.Blocks;
if (isCompactMode)
Close();
return;
}