Exemple #1
0
        /// <summary>
        /// Populates panel with controls and upserts items to DB after backgroundworker_DoWork is completed
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void BackgroundWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            btnSearch.Enabled       = true;
            btnNextPage.Enabled     = true;
            btnPreviousPage.Enabled = true;

            spinningCircles1.Visible = false;

            if (_items != null)
            {
                PopulatePanelWithControls();
                await ItemsProcessor.SaveItemsToDB(_items);
            }
        }