public void UpdateAllListData(ControlFiles controlFiles)
        {
            List <FilesForCovert> lp;

            lp = controlFiles.GetMatchList(p => true);

            AllDataGridView.Rows.Clear();

            foreach (var v in lp)
            {
                AllDataGridView.Rows.Add(v.Id, v.GetBasename(),
                                         v.Status, v.IsDeleted, v.IsDummy, v.IsDeleted);
            }

            AllDataGridView.Update();
        }
Beispiel #2
0
        private void GetFileProperties()
        {
            ClearGridViews();

            List <MyProperty> ImageProperties = GetImageProperties();
            List <MyProperty> PhotoProperties = GetPhotoProperties();
            List <MyProperty> GPSProperties   = GetGPSProperties();

            List <MyProperty> VideoProperties = GetVideoProperties();

            List <MyProperty> AudioProperties = GetAudioProperties();
            List <MyProperty> MusicProperties = GetMusicProperties();

            List <MyProperty> DocumentProperties = GetDocumentProperties();
            List <MyProperty> DRMProperties      = GetDRMProperties();
            List <MyProperty> MediaProperties    = GetMediaProperties();

            PopulateGridView(ImageDataGridView, PhotoProperties);
            PopulateGridView(ImageDataGridView, ImageProperties);
            PopulateGridView(ImageDataGridView, GPSProperties);

            PopulateGridView(VideoDataGridView, VideoProperties);

            PopulateGridView(AudioDataGridView, AudioProperties);
            PopulateGridView(AudioDataGridView, MusicProperties);

            PopulateGridView(OtherDataGridView, DocumentProperties);
            PopulateGridView(OtherDataGridView, MediaProperties);
            PopulateGridView(OtherDataGridView, DRMProperties);

            foreach (DataGridView gridView in gridViews)
            {
                foreach (DataGridViewRow row in gridView.Rows)
                {
                    AllDataGridView.Rows.Add(row.Cells[0].Value, row.Cells[1].Value);
                }
            }

            AllDataGridView.Sort(AllDataGridView.Columns[0], ListSortDirection.Ascending);
        }