master
1using System.Windows.Forms;
2using Notepad.Presentation.Core;
3using Notepad.Presentation.Model.Menu.File.Commands;
4using Notepad.Presentation.Presenters.Shell;
5using Notepad.Presentation.Views.Shell;
6
7namespace Notepad.Presentation.Context {
8 public class NotepadApplicationContext : ApplicationContext {
9 public NotepadApplicationContext(
10 WindowShell shellView,
11 IExitCommand exitCommand,
12 IApplicationController applicationController) {
13 shellView.Closed += delegate { exitCommand.Execute(); };
14 applicationController.Run<IMainShellPresenter>();
15 MainForm = shellView;
16 }
17 }
18}