Exemplo n.º 1
0
 public void ReloadProjectDescription(string file)
 {
     if (File.Exists(file))
     {
         var pd = new ProjectDesc(file);
         m_ProjectDescs[pd.FullFileName.ToLower()] = pd;
     }
 }
Exemplo n.º 2
0
 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));
     }
 }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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;
            }
        }