Ejemplo n.º 1
0
 public void DeleteXuLieTuOneLine(EXuLieTu index)                      // 删除一行
 {
     for (int i = 0; i < l_XunLieTuBean.Count; i++)
     {
         if (l_XunLieTuBean[i].TuType == (ushort)index)
         {
             XuLieTuPathV_BeanV.Remove(l_XunLieTuBean[i].KName);
             l_XunLieTuBean.RemoveAt(i);
         }
     }
 }
Ejemplo n.º 2
0
    public void DeleteXuLieTuSave(EXuLieTu index, string[] paths)         // 删除单个
    {
        string kName = Path.GetFileNameWithoutExtension(paths[0]);

        if (string.IsNullOrEmpty(kName))
        {
            return;
        }
        kName = kName.Trim();
        XuLieTuPathV_BeanV.Remove(kName);
        for (int i = 0; i < l_XunLieTuBean.Count; i++)
        {
            XuLieSaveBean bean = l_XunLieTuBean[i];
            if (bean.KName == kName && bean.TuType == (ushort)index)
            {
                l_XunLieTuBean.RemoveAt(i);
                return;
            }
        }
    }