public GridForm() { InitializeComponent(); Model = new Model(); Model.ModifiedChanged += Model_ModifiedChanged; GridController = new GridController(Model, GridElementHost); GridController.SelectionChanged += GridViewController_SelectionChanged; new PictureController(PictureBox, PropertyGrid); var statusController = new StatusController(Model, StatusBar); PersistenceController = new PersistenceController(Model, this, FileReopen, FileReopenItem_Click); PersistenceController.FilePathChanged += PersistenceController_FilePathChanged; MediaController = new MediaController(Model, statusController, AddRecentFolders, AddRecentFoldersItem_Click); Model_ModifiedChanged(Model, EventArgs.Empty); GridController.ViewByArtist(); }
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); }
public GridControllerWPF(Model model, ElementHost view) : base(model, view) { }
public StatusController(Model model, StatusStrip statusStrip) { Model = model; StatusBar = statusStrip.Items; }
public GridController(Model model, ElementHost view) { Model = model; View = view; }
public GridControllerWF(Model model, DataGridView view) : base(model, view) { }