Пример #1
0
        /// <summary>
        /// Empty path - In Memory Option
        /// </summary>
        /// <param name="path"></param>
        public VSCatalog(string path)
        {
            this.dl = new List <VSCatalogDescriptor>();

            if (path == "")
            {
                catalog_file_name = "";
                backup_file_name  = "";
                CATALOG_DIR       = "~IMO~";
            }
            else
            {
                catalog_file_name = path + "\\" + DEFS.CTLG_FILE_NAME;
                backup_file_name  = catalog_file_name + ".bak";

                string[] s = VSLib.Parse(path, "\\");
                CATALOG_DIR = s[s.Length - 1];

                Load();
            }
        }