public GenerateReportStatusForm(Controls.GranulometryControl granulometryControl, List<CorrelationMatrix> correlationMatrixList, Controls.KrigingSelectionControl krigingSelectionControl)
        {
            _granulometryControl = granulometryControl;
            _correlationMatrixList = correlationMatrixList;
            _krigingSelectionControl = krigingSelectionControl;

            InitializeComponent();

            _db = new AppContext();
            _reportSettingRepository = new ReportSettingRepository(_db);
        }
        public DrawGranulometryOnPDF(Controls.GranulometryControl granulometryControl, Document document, ProgressBar progressbar, Panel viewPanel, ITextEvents iTextEvents)
        {
            _document = document;
            _iTextEvents = iTextEvents;

            _progressBar = progressbar;
            _viewPanel = viewPanel;
            _granulometryControl = granulometryControl;

            _viewPanel.ControlAdded += _viewPanel_ControlAdded;

            _backgroundWorker = new BackgroundWorker();

            _backgroundWorker.WorkerReportsProgress = true;
            _backgroundWorker.DoWork += _backgroundWorker_DoWork;
            _backgroundWorker.ProgressChanged += _backgroundWorker_ProgressChanged;
            _backgroundWorker.RunWorkerCompleted += _backgroundWorker_RunWorkerCompleted;

            _backgroundWorker.RunWorkerAsync();
        }