Ejemplo n.º 1
0
 private void newProjectToolStripMenuItem_Click(object sender, EventArgs e)
 {
     dlgNewProject np = new dlgNewProject();
     DialogResult dr = np.ShowDialog();
     Project p = Project.CreateNew(np.Name);
     this.currentProject = p;
 }
Ejemplo n.º 2
0
 public static Project CreateNew(string name)
 {
     Project p = new Project(name);
     DirectoryInfo di = Directory.CreateDirectory(Hurricane.ProjectPath  + System.IO.Path.DirectorySeparatorChar + name);
     di.CreateSubdirectory("JavaScript");
     di.CreateSubdirectory("Templates");
     di.CreateSubdirectory("Library");
     di.CreateSubdirectory("Assets");
     p.xml = new XDocument();
     p.xml.Add(new XDeclaration("1.0", String.Empty, String.Empty));
     p.xml.Add(new XElement("HurricaneProject"),
         new XElement("Directories",
                 new XElement("Directory", new XAttribute("name", "JavaScript")),
                 new XElement("Directory", new XAttribute("name", "Templates")),
                 new XElement("Directory", new XAttribute("name", "Library")),
                 new XElement("Directory", new XAttribute("name", "Assets"))
             )
         );
     p.path = di.FullName;
     p.name = name;
     p.Save();
     return p;
 }
Ejemplo n.º 3
0
 public static void BuildJavaScriptLibrary(Project project)
 {
 }
Ejemplo n.º 4
0
 public static void Run(Project project)
 {
     // This loads a 'compiled' project into memory and opens its comm ports accepting signalr data connections.
 }
Ejemplo n.º 5
0
 public static void Publish(Project project)
 {
     // Deploy html project to IIS.  I guess eventually, other server environments.
 }