public void ReloadProjectDescription(string file) { if (File.Exists(file)) { var pd = new ProjectDesc(file); m_ProjectDescs[pd.FullFileName.ToLower()] = pd; } }
public TaskDesc(ProjectDesc proj, XmlElement tnode) { ParentProject = proj; Name = tnode.GetAttribute("Name"); foreach (XmlElement snode in tnode.GetElementsByTagName("Scene")) { Scenes.Add(new SceneDesc(this, snode)); } }
public ProjectDesc GetProjectDescription(string projFile) { if (!projFile.ToLower().EndsWith(ProjectInfo.DefaultFileExt)) { projFile += ProjectInfo.DefaultFileExt; } if (projFile.IndexOf(':') < 0) { projFile = Options.DefaultProjectsRootPath + projFile; } ProjectDesc desc = null; m_ProjectDescs.TryGetValue(projFile.ToLower(), out desc); return(desc); }
public void LoadProjectsDescriptions() { m_ProjectDescs.Clear(); List <string> files = new List <string>(); var dir = Options.DefaultProjectsRootPath; if (Directory.Exists(dir)) { files.AddRange(Directory.GetFiles(dir, "*" + ProjectInfo.DefaultFileExt, SearchOption.AllDirectories)); } foreach (var file in files) { var pd = new ProjectDesc(file); m_ProjectDescs[file.ToLower()] = pd; } }