Exemplo n.º 1
0
        public void SortBookmark(string vstrBookmark)
        {
            cFile oFile = new cFile();

            int intCount = 0;

            for (int intSearched = 0; intSearched <= (oLinkCategories.Catagories.Count - 1); intSearched++)
            {
                cLinkCategory oLinkCategory = new cLinkCategory();
                oLinkCategory = oLinkCategories.Catagories[intSearched];
                intCount      = vstrBookmark.IndexOf(oLinkCategory.LinkDefine);
                if (intCount >= 0)
                {
                    oFile.SaveLink(vstrBookmark, oLinkCategory.FileName);
                }
            }


            oFile.SaveLink(vstrBookmark, "miscBookmarks.txt");
        }
Exemplo n.º 2
0
        public bool LoadToFile(string vsPath)
        {
            cFile oFile = new cFile(vsPath);

            try
            {
                List <String> sNewUrlList = oFile.ReadList();
                Parallel.For(0, sNewUrlList.Count, x =>
                {
                    string sUrl1 = sNewUrlList[x];
                    oFile.SaveLink(sUrl1, msExportedLinkPath);
                });
                oFile.Delete();

                return(true);
            }

            catch (Exception ex)
            {
                throw ex;
            }
            //throw new NotImplementedException();
        }