summaryrefslogtreecommitdiff
path: root/src/Notepad/Presentation/Model/Menu/File/Commands/IExitCommand.cs
blob: a78c32be13ef49b7b752ea43feefccd5e7f8bb0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using Notepad.Infrastructure.Core;
using Notepad.Infrastructure.System;

namespace Notepad.Presentation.Model.Menu.File.Commands {
    public interface IExitCommand : ICommand {}

    public class ExitCommand : IExitCommand {
        private readonly IApplicationEnvironment application;

        public ExitCommand(IApplicationEnvironment application) {
            this.application = application;
        }

        public void Execute() {
            application.ShutDown();
        }
    }
}