public static Boolean LoadProject(INFO_ALL_PROJECTS info)
        {
            Boolean result     = true;
            String  local_path = info.Path + info.Name;

            if (Directory.Exists(local_path))
            {
                result          = true;
                present_project = info;

                INFO_CONFIG conf = LoadXSF(local_path + "\\" + info.Name + XSF);

                //	LoadBlocks(local_path);
            }
            else
            {
                PrevError = "Не удалось найти файл. Скорее всего он был перемещен или удален.";
                result    = false;
            }

            return(result);
        }
        public static void SaveProject(LMD_Compiling.CompilingManager cm, List <LMD_BLOCKS.BLOCK_JOINT.BASE_BLOCK> blocks, LMD_GUI.LMD_BottomPanel info,
                                       LMD_GUI.LMD_FastInformationPanel fast_info)
        {
            INFO_ALL_PROJECTS info_project = GetPresentProject();

            if (info_project != null)
            {
                List <INFO_BLOCK> info_list = cm.GetInfoBlocks(blocks, info, fast_info);

                if (info_list.Count > 0)
                {
                    String path = present_project.Path + present_project.Name + @"\Blocks.xml";

                    XmlSerializer ser = new XmlSerializer(typeof(List <INFO_BLOCK>));

                    using (Stream stream = new FileStream(path, FileMode.Create))
                    {
                        ser.Serialize(stream, info_list);
                    }
                }
            }
        }