Пример #1
0
        private void FormMovieAdd_Load(object sender, EventArgs e)
        {
            cmbMovieType.FillComboBox <MovieTypeEnum>();
            cmbMovieType.SelectedIndex = 0;
            List <CastDTO> dtoCasts = _cc.GetAllCasts();

            lstCasts.DataSourceMember <List <CastDTO> >("FullName", "Id", dtoCasts);
            List <DirectorDTO> dtoDirectors = _dc.SelectAllDirectors();

            lstDirectors.DataSourceMember <List <DirectorDTO> >("FullName", "Id", dtoDirectors);
        }
Пример #2
0
        private void ListLoad()
        {
            List <DirectorDTO> directors = _dc.SelectAllDirectors();

            ListBoxExtension.DataSourceMember <List <DirectorDTO> >(lstDirectorList, "FullName", "Id", directors);
        }