public PersistenceController(Model model, Control view, ToolStripDropDownItem recentMenu, EventHandler onItemClick) { Model = model; View = view; var filter = Properties.Settings.Default.LibraryFilter; OpenFileDialog = new OpenFileDialog { Filter = filter, Title = "Select the library file to open" }; SaveFileDialog = new SaveFileDialog { Filter = filter, Title = "Save library file" }; MruController = new MruController(Application.ProductName + @"\LibraryMRU", recentMenu, onItemClick); }
public MediaController(Model model, StatusController statusController, ToolStripDropDownItem recentMenu, EventHandler onItemClick) { Model = model; StatusController = statusController; var filter = Properties.Settings.Default.MediaFilter; OpenFileDialog = new OpenFileDialog { Filter = filter, Multiselect = true, Title = "Select the media file(s) to add" }; FolderBrowserDialog = new FolderBrowserDialog { Description = "Select the media folder to add" }; MruController = new MruController(Application.ProductName + @"\MediaMRU", recentMenu, onItemClick); }