Beispiel #1
0
 private void MTCCF_SelectionChanged(object sender, EventArgs e)
 {
     if (tabControl1.SelectedTab == tpTV)
     {
         string filenameFriendly = TVSettings.Instance.FilenameFriendly(FileHelper.MakeValidPath(tvCodeFinder.SelectedShow()?.Name));
         lblDirectoryName.Text = System.IO.Path.DirectorySeparatorChar + filenameFriendly;
     }
 }
Beispiel #2
0
        private void bnQuickLocate_Click(object sender, EventArgs e)
        {
            //If there are no LibraryFolders then we cant use the simplified UI
            if (TVSettings.Instance.LibraryFolders.Count == 0)
            {
                MessageBox.Show(
                    "Please add some library folders in the Preferences to use this.",
                    "Can't Auto Add Show", MessageBoxButtons.OK, MessageBoxIcon.Error);

                return;
            }

            string          showName = codeFinderForm.SelectedShow()?.Name ?? txtCustomShowName.Text ?? "New Folder";
            QuickLocateForm f        = new QuickLocateForm(showName, MediaConfiguration.MediaType.tv);

            if (f.ShowDialog(this) == DialogResult.OK)
            {
                txtBaseFolder.Text = f.DirectoryFullPath;
            }
        }