ArgusTV.Recorder.MediaPortalTvServer.SetupForm.LoadUncPaths C# (CSharp) Method

LoadUncPaths() private method

private LoadUncPaths ( ) : void
return void
        private void LoadUncPaths()
        {
            try
            {
                bool anyError = false;

                List<UncPathItem> pathItems = new List<UncPathItem>();
                List<UncPathItem> tsPathItems = new List<UncPathItem>();

                List<TvDatabase.Card> mediaPortalCards = Utility.GetAllCards();
                foreach (TvDatabase.Card card in mediaPortalCards)
                {
                    anyError = anyError | AddUncPathItem(pathItems, card.Name, card.RecordingFolder);
                    anyError = anyError | AddUncPathItem(tsPathItems, card.Name, card.TimeShiftFolder);
                }

                _uncPathsBindingSource.DataSource = pathItems;
                _uncTimeshiftingBindingSource.DataSource = tsPathItems;
                EnableUncButtons();

                if (anyError)
                {
                    MessageBox.Show(this, "You must set up a share with full permissions for the ARGUS TV Scheduler service account for all recording folders!", null, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(this, ex.Message, null, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }