main
 1using Gorilla.Commons.Infrastructure.FileSystem;
 2
 3namespace MoMoney.Presentation.Model.Projects
 4{
 5    public class Project : IProject
 6    {
 7        readonly File file;
 8
 9        public Project(File file)
10        {
11            this.file = file;
12        }
13
14        public string name()
15        {
16            return is_file_specified() ? file.path : "untitled.mo";
17        }
18
19        public bool is_file_specified()
20        {
21            return file != null;
22        }
23
24        public bool is_open()
25        {
26            return true;
27        }
28    }
29}