Esempio n. 1
0
        private void btnEditVideoLibraryFolders_Click(object sender, EventArgs e)
        {
            using (FormFoldersCollection frmFolders = new FormFoldersCollection(Settings.Default.VideoLibraryFolders, false, false, false, Functions.OSSupportsExplorerLibraries, Settings.Default.UseExplorerLibraryForVideoFolders, "Add the folders where you keep your video files.  Subfolders are included automatically.", "Video Library Folders", "videos"))
            {
                DialogResult dr = frmFolders.ShowDialog();

                // Save settings and folders?
                if (dr == System.Windows.Forms.DialogResult.OK)
                {
                    Settings.Default.VideoLibraryFolders = frmFolders.Folders;
                    if (Functions.OSSupportsExplorerLibraries)
                        Settings.Default.UseExplorerLibraryForVideoFolders = frmFolders.IsUseWin7LibraryCheckboxChecked;
                }
            }
        }
Esempio n. 2
0
        private void AddRemoveRecTVFolders()
        {
            using (FormFoldersCollection frmFolders = new FormFoldersCollection(Settings.Default.RecordedTVFolders, true, Settings.Default.RecurseRecTVSubfolders, true, false, false, "Add the folders where you keep .wtv or .dvr-ms files:", "Recorded TV Folders", "recorded TV"))
            {

                DialogResult dr = frmFolders.ShowDialog();

                if (dr == System.Windows.Forms.DialogResult.OK)
                {
                    Settings.Default.RecordedTVFolders = frmFolders.Folders;
                    Settings.Default.RecurseRecTVSubfolders = frmFolders.IsRecurseCheckboxChecked;
                }
            }
        }