Пример #1
0
 public static void CreateNewProject()
 {
     InputForm iForm = new InputForm();
     string projectName = iForm.GetInput("Please enter the name of your project");
     if (projectName != null)
     {
         CurrentProject = ProjectManager.CreateNewProject(projectName);
     }
 }
Пример #2
0
 public bool New(string name)
 {
     Project project = new Project();
     project.Name = name;
     project.WorkingDirectory = ProjectController.RootDirectory;
     CurrentProject = project;
     if (ProjectLoaded != null)
     {
         ProjectLoaded(this, new TEventArgs<Project>(CurrentProject));
     }
     return true;
 }
Пример #3
0
 public bool Load(string filename)
 {
     XDocument xDoc = XDocument.Load(filename);
     XElement projEl = xDoc.Element("project");
     Project p = new Project();
     p.LoadFromElement(projEl);
     CurrentProject = p;
     if (ProjectLoaded != null)
     {
         ProjectLoaded(this, new TEventArgs<Project>(CurrentProject));
     }
     
     return true;
 }