Beispiel #1
0
        public void AddDir(MarkDownDir dir)
        {
            bool hasAdd = false;

            for (int i = 0; i < DirList.Count; i++)
            {
                if (DirList[i].FullPath == dir.FullPath)
                {
                    DirList.RemoveAt(i);
                    DirList.Insert(i, dir);
                    hasAdd = true;
                    break;
                }
            }
            if (!hasAdd)
            {
                DirList.Add(dir);
            }
        }