main
 1using gorilla.commons.utility;
 2using MoMoney.Presentation.Model.Projects;
 3using momoney.presentation.views;
 4
 5namespace momoney.presentation.model.menu.file
 6{
 7    public interface ISaveAsCommand : Command {}
 8
 9    public class SaveAsCommand : ISaveAsCommand
10    {
11        readonly IProjectController current_project;
12        readonly ISelectFileToSaveToDialog view;
13
14        public SaveAsCommand(ISelectFileToSaveToDialog view, IProjectController current_project)
15        {
16            this.view = view;
17            this.current_project = current_project;
18        }
19
20        public void run()
21        {
22            current_project.save_project_to(view.tell_me_the_path_to_the_file());
23        }
24    }
25}