private void LoadWorkerArticle_DoWork(object sender, DoWorkEventArgs e)
        {
            Int32 IdArticleSend = (Int32)e.Argument;

            Core.Transfert.TransfertArticleImage sync = new Core.Transfert.TransfertArticleImage();

            sync.Exec(IdArticleSend);
            LoadWorkerArticle.ReportProgress(100);
        }
        private void LoadWorkerListArticle_DoWork(object sender, DoWorkEventArgs e)
        {
            List <Int32> ListIdArticleSend = (List <Int32>)e.Argument;

            if (ListIdArticleSend != null)
            {
                Core.Transfert.TransfertArticleImage sync = new Core.Transfert.TransfertArticleImage();

                if (!Core.Global.GetConfig().ConfigImageSynchroPositionLegende)
                {
                    Model.Local.ArticleImageRepository ArticleImageRepository = new Model.Local.ArticleImageRepository();
                    List <int> listarticlewithimagetosync = ArticleImageRepository.ListIDArticleNotSync();
                    ListIdArticleSend = ListIdArticleSend.Where(a => listarticlewithimagetosync.Contains(a)).ToList();
                }

                int count = ListIdArticleSend.Count;

                for (int i = 0; i < count; i++)
                {
                    sync.Exec(ListIdArticleSend[i]);
                    LoadWorkerListArticle.ReportProgress((((i + 1) * 100) / count));
                }
            }
        }