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); if (f.ShowDialog() == DialogResult.OK) { txtBaseFolder.Text = f.DirectoryFullPath; } }
private void MTCCF_SelectionChanged(object sender, EventArgs e) { lblDirectoryName.Text = System.IO.Path.DirectorySeparatorChar + TVSettings.Instance.FilenameFriendly(FileHelper.MakeValidPath(codeFinder.SelectedShow()?.Name)); }