Ejemplo n.º 1
0
        /// <summary>
        /// Создание файла с текстом
        /// </summary>
        /// <param name="filename"></param>
        /// <param name="projectFolder"></param>
        public static VHDL_Code_File CreateFile(string filename, string text, ProjectExplorer.ProjectFolder projectFolder)
        {
            string         path = System.IO.Path.Combine(projectFolder.Path, string.Concat(filename, ".vhdl"));
            VHDL_Code_File res  = new VHDL_Code_File(path, projectFolder);

            projectFolder.AddElement(res);

            var writer = System.IO.File.CreateText(path);

            writer.Write(text);
            writer.Close();

            projectFolder.Save();

            return(res);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Проверка синтаксиса файла
 /// </summary>
 /// <param name="vhdl_code"></param>
 public void CheckSyntaxOne(Schematix.ProjectExplorer.VHDL_Code_File vhdl_code)
 {
     CheckSyntaxOne(vhdl_code.Path);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// компиляция файла
 /// </summary>
 /// <param name="vhdl_code"></param>
 public void CompileOne(Schematix.ProjectExplorer.VHDL_Code_File vhdl_code)
 {
     CompileOne(vhdl_code.Path);
 }