master
 1using Notepad.Infrastructure.Core;
 2using Notepad.Infrastructure.System;
 3
 4namespace Notepad.Presentation.Model.Menu.File.Commands {
 5    public interface IExitCommand : ICommand {}
 6
 7    public class ExitCommand : IExitCommand {
 8        private readonly IApplicationEnvironment application;
 9
10        public ExitCommand(IApplicationEnvironment application) {
11            this.application = application;
12        }
13
14        public void Execute() {
15            application.ShutDown();
16        }
17    }
18}