Пример #1
0
 public MainForm()
 {
     InitializeComponent();
     Model = new TagFileModel();
     Model.ModifiedChanged += Model_ModifiedChanged;
     ViewTechnology = ViewTechnology.WinForms;
     PictureController = new PictureController(PictureBox, PropertyGrid);
     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);
 }
Пример #2
0
 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();
 }