private void NewTvShow() { ContentEditorWindow cew = new ContentEditorWindow(new TvShow()); cew.ShowDialog(); if (cew.Results != null) { TvShow show = cew.Results as TvShow; show.UpdateInfoFromDatabase(); ContentRootFolder folder; Settings.GetTvFolderForContent(show, out folder); show.RootFolder = folder.FullPath; show.Path = show.BuildFolderPath(); this.Shows.Add(show); this.Item.TvEpisode.Show = show; } }
/// <summary> /// Open content editor window /// </summary> private void EditContent() { ContentEditorWindow cew = new ContentEditorWindow(this.SelectedContent); cew.ShowDialog(); if (cew.Results != null) { if (this.SelectedContent is Movie) { (this.SelectedContent as Movie).CloneAndHandlePath(cew.Results as Movie, false); Organization.Movies.Save(); } else { (this.SelectedContent as TvShow).CloneAndHandlePath(cew.Results as TvShow, false); Organization.Shows.Save(); } } }