Beispiel #1
0
        private void InitializeDictionaries( )
        {
            allActors = new Dictionary <string, int>( );
            foreach (var item in ActorBL.GetAllDO( ))
            {
                allActors.Add(item.Name, item.ID);
                setProgressBarValue(parseStatus, parseStatus.Value + 1);
            }

            allDirectors = new Dictionary <string, int>( );
            foreach (var item in DirectorBL.GetAllDO( ))
            {
                allDirectors.Add(item.Name, item.ID);
                setProgressBarValue(parseStatus, parseStatus.Value + 1);
            }

            allLanguages = new Dictionary <string, int>( );
            foreach (var item in LanguageBL.GetAllDO( ))
            {
                allLanguages.Add(item.Name, item.ID);
                setProgressBarValue(parseStatus, parseStatus.Value + 1);
            }

            allTypes = new Dictionary <string, int>( );
            foreach (var item in TypeBL.GetAllDO( ))
            {
                allTypes.Add(item.Name, item.ID);
                setProgressBarValue(parseStatus, parseStatus.Value + 1);
            }

            allWriters = new Dictionary <string, int>( );
            foreach (var item in WriterBL.GetAllDO( ))
            {
                allWriters.Add(item.Name, item.ID);
                setProgressBarValue(parseStatus, parseStatus.Value + 1);
            }
        }