Esempio n. 1
0
        private void ImportFilesFromFolder(SearchOption searchOption)
        {
            DialogResult result = folderBrowserDialog.ShowDialog();

            if (result != DialogResult.OK)
            {
                return;
            }

            string[] filenames = Directory.GetFiles(folderBrowserDialog.SelectedPath, "*", searchOption);

            ImportFilesForm importFilesForm = new ImportFilesForm(filenames);

            importFilesForm.ShowDialog(this);

            RefreshMultimediaListView();
        }
Esempio n. 2
0
        private void buttonImportFiles_Click(object sender, EventArgs e)
        {
            DialogResult result = openFileDialog.ShowDialog();

            if (result != DialogResult.OK)
            {
                return;
            }

            ImportFilesForm importFilesForm = new ImportFilesForm(openFileDialog.FileNames);

            try
            {
                importFilesForm.ShowDialog(this);
            }
            catch (Exception)
            {
            }

            RefreshMultimediaListView();
        }