public Menu(UC_CONTROLE_Documents parent) { _UCDoc = parent; _BW_Menu = new BackgroundWorker(); _BW_Menu.WorkerReportsProgress = true; _BW_Menu.WorkerSupportsCancellation = true; _BW_Menu.ProgressChanged += BW_Menu_ProgressChanged; _BW_Menu.DoWork += new DoWorkEventHandler(BW_WORK_GetMenuDocument); _BW_Menu.RunWorkerCompleted += _BW_Menu_RunWorkerCompleted; listeDesSections = new List<Section>(); }
public DisplayArea(UC_CONTROLE_Documents parent) { _parent = parent; _BW_Display = new BackgroundWorker(); _BW_Display.WorkerReportsProgress = true; _BW_Display.WorkerSupportsCancellation = true; _BW_Display.ProgressChanged += BW_Display_ProgressChanged; _BW_Display.DoWork += new DoWorkEventHandler(BW_WORK_DisplayDocuments); _BW_Display.RunWorkerCompleted += BW_Display_RunWorkerCompleted; }